Part Number Hot Search : 
2SB0774 601SN1 2SD1828 B2060CT D3SB60 37156 TPC6110 13622
Product Description
Full Text Search
 

To Download CP321 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 CP321
Power PC-based CPU Board for CompactPCI Applications
Manual ID: 24977, Rev. Index 02 July 2003
The product described in this manual is in compliance with all applied CE standards.
Preface
CP321
Revision History
Manual/Product Title: Manual ID Number: Rev. Index 01 02 CP321 24977 Board Index 00 00 Date of Issue July 2002 July 2003
Brief Description of Changes Initial Issue Replace of BootstrapLoader chapter with NetBootLoader chapter
Imprint
Kontron Modular Computers GmbH may be contacted via the following: MAILING ADDRESS Kontron Modular Computers GmbH Sudetenstrasse 7 D - 87600 Kaufbeuren Germany TELEPHONE AND EMAIL +49 (0) 800-SALESKONTRON sales@kontron.com
For further information about other Kontron Modular Computers' products, please visit our Internet web site: www.kontron.com
Copyright
Copyright (c) 2003 Kontron Modular Computers GmbH. All rights reserved. This manual may not be copied, photocopied, reproduced, translated or converted to any electronic or machinereadable form in whole or in part without prior written approval of Kontron Modular Computers GmbH.
Disclaimer: Kontron Modular Computers GmbH rejects any liability for the correctnesss and completeness of this manual as well as its suitability for any particular purpose.
Page ii
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
Table of Contents
Revision History .........................................................................................................ii Imprint ........................................................................................................................ii Copyright ....................................................................................................................ii Table of Contents ...................................................................................................... iii List of Tables .............................................................................................................ix List of Figures ...........................................................................................................xi Proprietary Note ...................................................................................................... xiii Trademarks ............................................................................................................. xiii Explanation of Symbols .......................................................................................... xiv For Your Safety ........................................................................................................xv High Voltage Safety Instructions ..........................................................................xv Special Handling and Unpacking Instructions .....................................................xv General Instructions on Usage ........................................................................... xvi Two Year Warranty ................................................................................................. xvii
Chapter
1.
1
Introduction .................................................................................................. 1 - 3 1.1 System Overview .................................................................................... 1 - 3 1.2 Product Overview .................................................................................... 1 - 4 1.3 Board Overview ....................................................................................... 1 - 5 1.3.1 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 Board Introduction .......................................................................... 1 - 5 CP320-TR1 Optoisolated RS485 .................................................... 1 - 7 CP320-TR2 Optoisolated RS232 .................................................... 1 - 7 CP320-IO1 ...................................................................................... 1 - 7 CP-RIO3-01 .................................................................................... 1 - 7 PMC-HDD1 ..................................................................................... 1 - 7 1.4 Optional Modules .................................................................................... 1 - 7
1.5 System Relevant Information .................................................................. 1 - 8 1.6 Board Diagrams ...................................................................................... 1 - 9 1.6.1 1.6.2 1.6.3 Functional Block Diagram ............................................................... 1 - 9 Frontpanels ................................................................................... 1 - 10 Board Layouts ............................................................................... 1 - 11
1.7 Technical Specifications ........................................................................ 1 - 12
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page iii
Preface
CP321
1.8 Applied Standards ..................................................................................1 - 14 1.8.1 1.8.2 1.8.3 1.9.1 1.9.2 CE Compliance .............................................................................1 - 14 Mechanical Compliance ................................................................1 - 14 Environmental Tests ......................................................................1 - 14 CompactPCI Systems/Boards .......................................................1 - 14 PMC Add-on Modules/Carriers .....................................................1 - 14
1.9 Related Publications ..............................................................................1 - 14
Chapter
2.
2
Functional Description .................................................................................2 - 3 2.1 General Information .................................................................................2 - 3 2.2 Memory ....................................................................................................2 - 5 2.2.1 2.2.2 2.2.3 2.2.4 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 System Memory (SDRAM) ..............................................................2 - 5 Flash ...............................................................................................2 - 5 EEPROM's ......................................................................................2 - 5 Memory Expansion Sockets (DIL600) .............................................2 - 5 CPCI Interface and Pinout ..............................................................2 - 6 Ethernet Connector and Pinout .....................................................2 - 10 Serial Interfaces and Pinouts ........................................................ 2 - 11 Serial Interface Expansion Connector and Pinout .........................2 - 12 PCI Expansion Connector and Pinout ...........................................2 - 12 Memory Expansion Connectors ....................................................2 - 14 Watchdog Timer ............................................................................2 - 16 Realtime Clock (STC M41T56) ......................................................2 - 16 Reset/Abort ...................................................................................2 - 16 System Status Indicators ...............................................................2 - 17 Coding Switch ...............................................................................2 - 17 Digital Temperature Sensor (LM75) ..............................................2 - 17 DEBUG Interface and Pinout ........................................................2 - 18
2.3 Board Interfaces ......................................................................................2 - 6
2.4 Special Board Functions ........................................................................2 - 16
2.5 Options ..................................................................................................2 - 20
Page iv
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
Chapter
3.
3
Installation ................................................................................................... 3 - 3 3.1 Board Installation ..................................................................................... 3 - 3 3.2 Placement of the CP321 ......................................................................... 3 - 3 3.3 Front Panel I/O Connectors .................................................................... 3 - 4 3.4 Assembly of the CP321 and Options ...................................................... 3 - 4 3.5 Software Installation ................................................................................ 3 - 5
Chapter
4. 4.1.1 4.1.2 4.1.3
4
Configuration ............................................................................................... 4 - 3 4.1 Jumper and Resistor Settings ................................................................. 4 - 3 J1 - Bootstrap Loader / Socket Jumper .......................................... 4 - 3 J2 - Realtime Clock (RTC) Calibration Output ................................ 4 - 3 Resistor Settings for Non-standard Socket Devices ....................... 4 - 4
4.2 Board Address Map ................................................................................ 4 - 5 4.3 Board Control Registers .......................................................................... 4 - 7 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 Board ID Register ........................................................................... 4 - 8 Software Compatibility ID ............................................................... 4 - 8 Memory Configuration Register ...................................................... 4 - 9 Flash Bank Select Register .......................................................... 4 - 10 SRAM Bank Select Register ......................................................... 4 - 10 Watchdog Control Register ........................................................... 4 - 11 Interrupt Enable Register .............................................................. 4 - 12 Control Register ............................................................................ 4 - 13 Coding Switch Register ................................................................ 4 - 14
4.3.10 Board Logic / Revision Register ................................................... 4 - 14 4.3.11 Event Register .............................................................................. 4 - 15 4.4 UART Registers Address Mapping ....................................................... 4 - 16 4.4.1 4.4.2 UART A ......................................................................................... 4 - 16 UART B ......................................................................................... 4 - 17
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page v
Preface
CP321
4.4.3 4.4.4
IRQ Routing ..................................................................................4 - 18 Real-time Clock .............................................................................4 - 19
4.5 EEPROM's .............................................................................................4 - 20 4.6 Digital Temperature Sensor, LM75 ........................................................4 - 20
Chapter
5.
5
NetBootLoader .............................................................................................5 - 3 5.1 General Operation ...................................................................................5 - 3 5.2 NetBootLoader Interfaces ........................................................................5 - 3 5.2.1 5.2.2 5.2.3 5.2.4 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.4.1 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6 5.4.7 MC1 (Abort) Signal ..........................................................................5 - 4 TERM Serial Interface .....................................................................5 - 4 SER0 Serial Interface ......................................................................5 - 4 Ethernet Interface ............................................................................5 - 4 NetBootLoader Control ...................................................................5 - 5 System Status Monitoring ...............................................................5 - 5 ftp Server Access ............................................................................5 - 6 FLASH Operation ............................................................................5 - 6 Motorola S-Records ........................................................................5 - 6 Initial Setup .....................................................................................5 - 7 Accessing the NetBootLoader .........................................................5 - 7 NetBootLoader Configuration ..........................................................5 - 8 telnet Login ......................................................................................5 - 9 FLASH Operations ..........................................................................5 - 9 Updating the NetBootLoader ......................................................... 5 - 11 Uploading a FLASH Area .............................................................. 5 - 11
5.3 NetBootLoader Functions ........................................................................5 - 4
5.4 Operating the NetBootLoader ..................................................................5 - 7
5.5 Plug and Play ......................................................................................... 5 - 11 5.6 Porting an Operating System to the CPU Board ...................................5 - 12 5.7 Commands ............................................................................................5 - 13
Page vi
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
Annex
A.
A
CP320-IO1 Module ......................................................................................A - 3 A.1. Overview .................................................................................................A - 3 A.2. Board Interfaces ......................................................................................A - 4 A.3. Board Layout ...........................................................................................A - 5 A.4. CP320-IO1 Front Panel ...........................................................................A - 6 A.5. Pinouts ...............................................................................................A - 7 A.6. Technical Specifications ........................................................................A - 10 A.7. Board Installation ................................................................................... A - 11 A.8. Jumper Setting ......................................................................................A - 14
Annex
B.
B C D
CP320-TR1 (Optional) .................................................................................B - 3 B.1 Board Description ....................................................................................B - 3
Annex
C.
CP320-TR2 (Optional) .................................................................................C - 3 C.1 Board description ....................................................................................C - 3
Annex
D.
Post Module ................................................................................................D - 3 D.1 Board description ....................................................................................D - 3 D.2 POST Codes ...........................................................................................D - 5
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page vii
Preface
CP321
Annex
E.
E
PMC-HDD1 Module .................................................................................... E - 3 E.1 Board description .................................................................................... E - 3
Page viii
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
List of Tables
1-1 1-2 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 2-9 2-10 2-11 2-11 4-1 4-2 4-3 4-4 4-5 4-6 4-7 4-8 4-9 4-10 4-11 4-12 4-13 4-14 4-15 4-16 4-17 4-18 System Relevant Information ................................................................... 1 - 8 CP321 Main Specifications .................................................................... 1 - 12 CompactPCI Bus Connector J1 ............................................................... 2 - 7 CompactPCI Bus Connector J2 (64-bit version) ...................................... 2 - 8 CompactPCI Bus Connector J2 (32-bit version) ...................................... 2 - 9 Ethernet Connector Pinout ..................................................................... 2 - 10 Serial Port Pinout ................................................................................... 2 - 11 Serial I/F Expansion Connector (CON3) Pinout ..................................... 2 - 12 PCI Expansion Connector Pinout .......................................................... 2 - 13 DIL 32 Pinout for Various Devices ......................................................... 2 - 15 DIL 36 Pinout for 1 MB and 2 MB NVSRAM Devices ............................ 2 - 15 System Status Indicators ....................................................................... 2 - 17 JTAG Connector (CON11) Pinout .......................................................... 2 - 19 JTAG Chain Resistor Settings ............................................................... 2 - 19 J1 - Bootstrap Loader / Socket Jumper Settings ..................................... 4 - 3 Resistor Settings for Socket 1 .................................................................. 4 - 4 Resistor Settings for Socket 2 .................................................................. 4 - 4 Board ID Register .................................................................................... 4 - 8 Software Compatibility ID ......................................................................... 4 - 8 Memory Configuration Register ............................................................... 4 - 9 Flash Bank Select Register .................................................................... 4 - 10 SRAM Bank Select Register .................................................................. 4 - 10 Watchdog Control Register .................................................................... 4 - 11 Interrupt Enable Register ....................................................................... 4 - 12 Control Register ..................................................................................... 4 - 13 Coding Switch Register .......................................................................... 4 - 14 Board Logic / Revision Register ............................................................. 4 - 14 Event Register ....................................................................................... 4 - 15 UART A General Register Set ............................................................... 4 - 16 UART A Baud Rate Register Set ........................................................... 4 - 16 UART A Enhanced Register Set ............................................................ 4 - 16 UART B General Register Set ............................................................... 4 - 17
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page ix
Preface
CP321
4-19 4-20 4-21 4-22 5-1 5-2 5-3 5-4 5-5 A-1 A-2 A-3 A-4 A-5 C-1 D-1 D-2 E-1 E-2
UART B Baud Rate Register Set ............................................................ 4 - 17 UART B Enhanced Register Set ............................................................ 4 - 17 IRQ Routing ............................................................................................ 4 - 18 Register Map RTC M41T56 .................................................................... 4 - 19 NetBootLoader Control Commands ......................................................... 5 - 5 System Status Monitoring Commands ..................................................... 5 - 5 ftp Server Commands ............................................................................... 5 - 6 FLASH Operation Commands .................................................................. 5 - 6 Motorola S-Records Commands .............................................................. 5 - 6 Jn1 (CON4), 32-bit PCI ........................................................................... A - 7 Jn2 (CON5), 32-bit PCI ........................................................................... A - 7 PCI Expansion Connector (CON2/3) Pinout ............................................ A - 8 CP320-IO1 Specifications ..................................................................... A - 10 IO1 Jumper Settings for Different Module Positions ............................. A - 14 Serial Port Pinout .................................................................................... C - 4 Access Addresses for CP320-Post ........................................................ D - 3 POST Code LIsting ................................................................................ D - 5 Pinout of the PMC Connectors ............................................................... E - 4 IDE Hard Disk Drive Connector Pinout .................................................. E - 5
Page x
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
List of Figures
1-1 1-2 1-3 1-4 2-1 2-2 2-2 2-2 2-2 2-3 2-4 2-5 2-6 2-7 3-1 4-1 4-2 4-3 A-1 A-2 A-3 A-5 B-1 C-1 D-1 E-1 CP321 Functional Block Diagram ............................................................ 1 - 9 CP321 Frontpanels ................................................................................ 1 - 10 CP321 Board (Front View) ..................................................................... 1 - 11 CP321 Board (Reverse View) ................................................................ 1 - 11 CPCI Connectors J1/J2 ........................................................................... 2 - 6 Ethernet Connector ................................................................................ 2 - 10 RS-232 Serial Connector ....................................................................... 2 - 11 Serial I/F (CON3) Connector .................................................................. 2 - 12 PCI Expansion Connector (CON11) ...................................................... 2 - 12 Memory Expansion Sockets 1 and 2 ..................................................... 2 - 14 RTC J2 Pinout ........................................................................................ 2 - 16 CP321 Front Panel ................................................................................ 2 - 16 JTAG Chain Layout ................................................................................ 2 - 18 JTAG Connector (CON11) ..................................................................... 2 - 19 CP321 and Options Assembly ................................................................. 3 - 4 CP321 Address Map ................................................................................ 4 - 5 CP321 Upper Area Address Map ............................................................ 4 - 6 Board Control Registers ........................................................................... 4 - 7 Board Layout (Front View) ....................................................................... A - 5 CP320-IO1 Front Panel ........................................................................... A - 6 Installation of PMC Module .................................................................... A - 12 Cascading of IO1 (or other) Modules onto the CP321 ........................... A - 14 View of Underside of the CP320-TR1 Module ......................................... B - 3 View of Underside of CP320-TR2 Module ............................................... C - 4 Plan and Profile Views of CP320-Post Module ....................................... D - 4 PMC-HDD1 Module with Hard Disk Drive Attached ................................ E - 3
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page xi
Preface
CP321
This page was intentionally left blank.
Page xii
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
Proprietary Note
This document contains information proprietary to Kontron Modular Computers GmbH. It may not be copied or transmitted by any means, disclosed to others, or stored in any retrieval system or media without the prior written consent of Kontron Modular Computers GmbH or one of its authorized agents. The information contained in this document is, to the best of our knowledge, entirely correct. However, Kontron Modular Computers GmbH cannot accept liability for any inaccuracies or the consequences thereof, or for any liability arising from the use or application of any circuit, product, or example shown in this document. Kontron Modular Computers GmbH reserves the right to change, modify, or improve this document or the product described herein, as seen fit by Kontron Modular Computers GmbH without further notice.
Trademarks
Kontron Modular Computers GmbH, the PEP logo and, if occurring in this manual, "CXM" are trade marks owned by Kontron Modular Computers GmbH, Kaufbeuren (Germany). In addition, this document may include names, company logos and trademarks, which are registered trademarks and, therefore, proprietary to their respective owners.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page xiii
Preface
CP321
Explanation of Symbols
CE Conformity This symbol indicates that the product described in this manual is in compliance with all applied CE standards. Please refer also to the section "Applied Standards" in this manual. Caution, Electric Shock! This symbol and title warn of hazards due to electrical shocks (> 60V) when touching products or parts of them. Failure to observe the precautions indicated and/or prescribed by the law may endanger your life/health and/or result in damage to your material. Please refer also to the section "High Voltage Safety Instructions" on the following page. Warning, ESD Sensitive Device! This symbol and title inform that electronic boards and their components are sensitive to static electricity. Therefore, care must be taken during all handling operations and inspections of this product, in order to ensure product integrity at all times. Please read also the section "Special Handling and Unpacking Instructions" on the following page. Warning! This symbol and title emphasize points which, if not fully understood and taken into consideration by the reader, may endanger your health and/or result in damage to your material. Note... This symbol and title emphasize aspects the reader should read through carefully for his or her own advantage.
Page xiv
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
For Your Safety
Your new Kontron product was developed and tested carefully to provide all features necessary to ensure its compliance with electrical safety requirements. It was also designed for a long fault-free life. However, the life expectancy of your product can be drastically reduced by improper treatment during unpacking and installation. Therefore, in the interest of your own safety and of the correct operation of your new Kontron product, you are requested to conform with the following guidelines.
High Voltage Safety Instructions
Warning! All operations on this device must be carried out by sufficiently skilled personnel only. Caution, Electric Shock! Before installing your new Kontron product into a system always ensure that your mains power is switched off. This applies also to the installation of piggybacks. Serious electrical shock hazards can exist during all installation, repair and maintenance operations with this product. Therefore, always unplug the power cable and any other cables which provide external voltages before performing work.
Special Handling and Unpacking Instructions
ESD Sensitive Device! Electronic boards and their components are sensitive to static electricity. Therefore, care must be taken during all handling operations and inspections of this product, in order to ensure product integrity at all times. * * Do not handle this product out of its protective enclosure while it is not used for operational purposes unless it is otherwise protected. Whenever possible, unpack or pack this product only at EOS/ESD safe work stations. Where a safe work station is not guaranteed, it is important for the user to be electrically discharged before touching the product with his/her hands or tools. This is most easily done by touching a metal part of your system housing. It is particularly important to observe standard anti-static precautions when changing piggybacks, ROM devices, jumper settings etc. If the product contains batteries for RTC or memory back-up, ensure that the board is not placed on conductive surfaces, including anti-static plastics or sponges. They can cause short circuits and damage the batteries or conductive circuits on the board.
*
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page xv
Preface
CP321
General Instructions on Usage
* In order to maintain Kontron's product warranty, this product must not be altered or modified in any way. Changes or modifications to the device, which are not explicitly approved by Kontron Modular Computers GmbH and described in this manual or received from Kontron's Technical Support as a special handling instruction, will void your warranty. This device should only be installed in or connected to systems that fulfill all necessary technical and specific environmental requirements. This applies also to the operational temperature range of the specific board version, which must not be exceeded. If batteries are present their temperature restrictions must be taken into account. In performing all necessary installation and application operations, please follow only the instructions supplied by the present manual. Keep all the original packaging material for future storage or warranty shipments. If it is necessary to store or ship the board please re-pack it as nearly as possible in the manner in which it was delivered. Special care is necessary when handling or unpacking the product. Please, consult the special handling and unpacking instruction on the previous page of this manual.
*
* *
*
Page xvi
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Preface
Two Year Warranty
Kontron Modular Computers GmbH grants the original purchaser of Kontron's products a TWO YEAR LIMITED HARDWARE WARRANTY as described in the following. However, no other warranties that may be granted or implied by anyone on behalf of Kontron are valid unless the consumer has the express written consent of Kontron Modular Computers GmbH. Kontron Modular Computers GmbH warrants their own products, excluding software, to be free from manufacturing and material defects for a period of 24 consecutive months from the date of purchase. This warranty is not transferable nor extendible to cover any other users or long-term storage of the product. It does not cover products which have been modified, altered or repaired by any other party than Kontron Modular Computers GmbH or their authorized agents. Furthermore, any product which has been, or is suspected of being damaged as a result of negligence, improper use, incorrect handling, servicing or maintenance, or which has been damaged as a result of excessive current/voltage or temperature, or which has had its serial number(s), any other markings or parts thereof altered, defaced or removed will also be excluded from this warranty. If the customer's eligibility for warranty has not been voided, in the event of any claim, he may return the product at the earliest possible convenience to the original place of purchase, together with a copy of the original document of purchase, a full description of the application the product is used on and a description of the defect. Pack the product in such a way as to ensure safe transportation (see our safety instructions). Kontron provides for repair or replacement of any part, assembly or sub-assembly at their own discretion, or to refund the original cost of purchase, if appropriate. In the event of repair, refunding or replacement of any part, the ownership of the removed or replaced parts reverts to Kontron Modular Computers GmbH, and the remaining part of the original guarantee, or any new guarantee to cover the repaired or replaced items, will be transferred to cover the new or repaired items. Any extensions to the original guarantee are considered gestures of goodwill, and will be defined in the "Repair Report" issued by Kontron with the repaired or replaced item. Kontron Modular Computers GmbH will not accept liability for any further claims resulting directly or indirectly from any warranty claim, other than the above specified repair, replacement or refunding. In particular, all claims for damage to any system or process in which the product was employed, or any loss incurred as a result of the product not functioning at any given time, are excluded. The extent of Kontron Modular Computers GmbH liability to the customer shall not exceed the original purchase price of the item for which the claim exists. Kontron Modular Computers GmbH issues no warranty or representation, either explicit or implicit, with respect to its products' reliability, fitness, quality, marketability or ability to fulfil any particular application or purpose. As a result, the products are sold "as is," and the responsibility to ensure their suitability for any given task remains that of the purchaser. In no event will Kontron be liable for direct, indirect or consequential damages resulting from the use of our hardware or software products, or documentation, even if Kontron were advised of the possibility of such claims prior to the purchase of the product or during any period since the date of its purchase. Please remember that no Kontron Modular Computers GmbH employee, dealer or agent is authorized to make any modification or addition to the above specified terms, either verbally or in any other form, written or electronically transmitted, without the company's consent.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page xvii
Preface
CP321
This page was intentionally left blank.
Page xviii
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
Chapter
1
Introduction
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 1
Introduction
CP321
This page was intentionally left blank.
Page 1 - 2
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
1.
1.1
Introduction
System Overview
The CompactPCI board described in this manual operates with the PCI bus architecture to support additional I/O and memory-mapped devices as required by various industrial applications. For detailed information concerning the CompactPCI standard, please consult the complete Peripheral Component Interconnect (PCI) and CompactPCI Specifications. For further information regarding these standards and their use, visit the homepage of the PCI Industrial Computer Manufacturers Group (PICMG). Many system relevant CompactPCI features that are specific to Kontron Modular Computers CompactPCI systems may be found described in the Kontron CompactPCI System Manual. Please refer to the section "Related Publications" at the end of this chapter for the relevant ordering information. The CompactPCI System Manual includes the following information: * Common information that is applicable to all system components, such as safety information, warranty conditions, standard connector pinouts etc. * All the information necessary to combine Kontron racks, boards, backplanes, power supply units and peripheral devices in a customized CompactPCI system, as well as configuration examples. * Data on rack dimensions and configurations as well as information on mechanical and electrical rack characteristics. * Information on the distinctive features of Kontron CompactPCI boards, such as functionality, hot swap capability. In addition, an overview is given for all existing Kontron CompactPCI boards. * Generic information on the Kontron CompactPCI backplanes, such as the slot assignment, PCB form factor, distinctive features, clocks, power supply connectors and signalling environment, as well as an overview of the Kontron CompactPCI standard backplane family. * Generic information on the Kontron CompactPCI power supply units, such as the input/output characteristics, redundant operation and distinctive features, as well as an overview of the Kontron CompactPCI standard power supply unit family.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 3
Introduction
CP321
1.2
Product Overview
The Kontron Modular Computers' single-height PowerPC CPU board CP321 is a comprehensive computing platform which brings together the latest advances in computing technology in a board designed for maximum performance, flexibility, and versatility within a rugged compact format. The design centered on realizing a board which addresses the need for increased computing capacity while at the same time reducing the size and number of system components in order to reduce space requirements and optimize power dissipation. The CP321 is based on the MPC8245, a highly integrated microprocessor containing a PowerPC MPC603e core with the initial version operating at 330 MHz and having a Floating Point Unit (FPU). One of the prime advantages of utilizing the established and proven MPC603e core is the associated broad infrastructure of support that has built up around it. All of the noteworthy third-party software tool vendors provide tools for the MPC8245. The CP321 employs an OS-independent boot loader that enables the loading of any operating system available for the PowerPC. This boot loader makes an update of the Flash contents and automatically downloads from Flash to SDRAM before booting the OS. For performance reasons the OS and user programs are started from the SDRAM. To satisfy increased demands for expansion flexibility, the CP321 design incorporates both local on-board PCI bus expansion as well as the standard external CPCI bus interfacing via CPCI backplanes. The local on-board PCI bus is extended to a special PCI expansion connector which currently allows the cascading of two additional modules which can either be carrier boards for other types of modules (e.g. PMC modules) or modules providing additional I/O capability. These features enable, for example, the connection of the widest range of system I/O components such as various field busses, a second Fast Ethernet, and Ultra 2 SCSI, to name just a few. A complete range of expansion possibilities is thus made available to the user by the CP321.
Page 1 - 4
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
1.3
1.3.1
Board Overview
Board Introduction
The CP321 is a 3U CPCI CPU board featuring a powerful CPU (number cruncher). The design is based on the new highly integrated Motorola PowerPC processor MPC8245, which integrates a PCI interface and various peripherals inside one Chip. Standard memory configurations of up to 256 MB of SDRAM are available. Flash memory for integrating the initial bootloader and ROMable operating systems are provided . Additionally, NVSRAM and Disk On Chip (by M-Systems) can be placed on two DIL sockets for memory expansion purposes. The CP321 is also able to communicate with the environment through a Fast Ethernet interface and two serial interfaces at the front side of the board. One of the serial interfaces is a RS232 full modem interface while the other is replaceable with a RS232/RS485 port. These UARTS support baud rates up to 1.5 Mbps and are software compatible with the 16550 UART from National Semiconductor. They contain 128 Byte Transmit and 128 Byte Receive FIFO's for increasing the CPU availability for other operations. The Ethernet is realized with the Intel 82559ER with full duplex support at both 10/100 Mbps possible. This Fast Ethernet controller with an integrated 10/100 Mbps physical layer device is the foremost solution for PCI board LAN designs. It combines low power consumption with a small package design which is ideal for power and space constrained environments. Anticipating the CP321's use in data critical applications, the memory data path contains a selectable in-line ECC controller which can provide SDRAM single-bit error correct or double-bit error detect. For mass data transmission a dual channel DMA controller is provided. It can be programmed directly or through the use of descriptor chains located in memory. Data can thus be moved from PCI to memory or vice versa, memory to memory, or PCI to PCI. The MPC8245 supports processor control and visibility through the JTAG/COP (common onchip processor) interface that is available on the CP321. Utilizing third party tools, the developer can access and control the processor. It also has standard IEEE 1149.1a-1993 compliant boundary scan capability. Utilizing the local on-board PCI expansion connector, the CP321 supports up to 2 mezzanine modules. Currently there is a carrier board available for PMC modules, the CP320-IO1, which can carry a single PMC module. Given the wide range of PMC modules now available, this feature affords the user a very wide range of options with the possibility of low-cost system expansion without an additional PCI bridge or using the expansion capability of the backplane for ruggedized design applications such as the field of transportation. Used as the system controller in a normal CPCI system, the CP321 supports the full range of expansion capabilities as provided via the external CPCI bus.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 5
Introduction
CP321
Board-Specific Information The CP321 is a CPCI PowerPC-based single-board computer specifically designed for use in highly integrated platforms with solid mechanical interfacing for a wide range of industrial and transportation environment applications.
Some of the CP321's outstanding features are: * 330 MHz PowerPC MPC8245 Kahlua II (603E core with an integrated FPU, combined with PCI interface and memory controller) * 33 MHz CPCI bus (32-bit internal, 64-bit external) (32-bit Rear I/O version on request) * 16 kB data cache * 16 kB instruction cache * up to 256 MB SDRAM (132MHz) with optional ECC support * up to 8 MB onboard Flash * one EEPROM for the system and one user EEPROM (8192 x 8) * on-board interfaces: * Fast Ethernet interface * two RS232 serial I/O's, or one RS232 plus one RS485 opto-isolated (ESD protected and EMI compliant) * memory expansion sockets for Flash memory, M-Systems' DiskOnChip, NVSRAM, or EPROM * onboard PCI bus with expansion connector * four counter/timers * programmable watchdog timer * real-time clock * coding switch * temperature sensing * front panel LED status indicators * debug interface, JTAG/COP * double and triple-width versions via PMC carriers * compliance with CPCI Specification PICMG 2.0 R 3.0 * operating system: VxWorks, Linux etc.
Page 1 - 6
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
1.4
1.4.1
Optional Modules
CP320-TR1 Optoisolated RS485
This transition module provides a single, optoisolated RS485 interface for the second serial interface. It connects to CP321 via the CON3 connector and replaces the RS232 (Serial) interface. With this device installed it is only possible to have a 4HP board. See Appendix B for more details.
1.4.2
CP320-TR2 Optoisolated RS232
This transition module provides a single, optoisolated RS232 interface for the second serial interface. It connects to CP321 via the CON3 connector and replaces the onboard RS232 (Serial) interface. With this device installed it is only possible to have a 4HP board. See Appendix C for more details.
1.4.3
CP320-IO1
This module is a specially designed PMC carrier board for the CP321 system. The PCI signals are routed through the CON11 PCI Expansion Connector on the CP321 main board thus eliminating the need for a separate CPCI backplane connector. Up to two CP320-IO1 Modules can be cascaded allowing for two PMC modules to be added to a CP321 system. See Appendix A for more details.
1.4.4
CP-RIO3-01
Designed for use with a CP321 32-bit rear I/O variant and a backplane with system slot rear I/O capability, this module provides rear I/O interfacing to the two standard RS232 serial interfaces and the Fast Ethernet interface. In this configuration only the rear I/O interface is operational.
1.4.5
PMC-HDD1
The PMC-HDD1 module in conjunction with the CP320-IO1 module provides a cost-effective way to add a mass storage device. It is designed for use with one 2.5" IDE hard disk drive.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 7
Introduction
CP321
1.5
System Relevant Information
The following system relevant information is general in nature but should still be considered when developing applications using the CP321. Table 1-1: System Relevant Information SUBJECT
System Configuration Master/Slave Functionality Board Location in the System Hot-Swap Compatibility
INFORMATION
A CP321-based system is made up of at least one system controller (the CP321) and up to 7 other I/O boards can be located within one system. The CP321 can operate only as a system controller. The CP321 board must be installed in the system controller slot of a CPCI backplane. The CP321 supports all necessary signals to allow other peripheral boards to be removed or added with power on. The individual clocks for each slot and access to or interrupt on the backplane ENUM# signal are compliant to the PICMG 2.1 Hot-Swap specification. The CP321 can be installed in any CompactPCI 3U or 6U rack. The CP321 can operate under the following operating systems: VxWorks (R) Linux
Hardware Requirements Operating Systems
Page 1 - 8
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
1.6
Board Diagrams
The following diagrams provide additional information concerning board functionality and component layout.
1.6.1
Functional Block Diagram
Figure 1-1: CP321 Functional Block Diagram
PUSH BUTTONS/ LED'S SYSTEM LOGIC (soldered) Coding SERIAL INTERFACE 2x RS232 or 1x RS232 + 1x RS485 POWER SUPPLY Memory Expansion SOCKET 1 Memory Expansion SOCKET 2
FLASH
64-bit wide Memory Bus
SYSTEM MEMORY (SDRAM)
Port X (8 bit wide)
DEBUG
CPU
PUSH BUTTON RESET GENERATION RTC I2C BUS EEPROMS 1x System 1x User FAST ETHERNET DTS
PCI EXPANSION CONNECTOR
CPCI INTERFACE 64-bit extension or Rear I/O J2
CPCI INTERFACE 32-bit
PCI Bus
J1
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 9
Introduction
CP321
1.6.2
Frontpanels
Figure 1-2: CP321 Frontpanels LEGEND:
CP 321
W
CP 321
Upper Figures Left standard CP321 Right standard CP321 with a CP320IO1 Module Lower Figures Left CP321 with a CP320-TR1/TR2 RS485 Optoisolation Module
Right CP321 with a CP320-TR1/TR2 and a CP320-IO1 Module (Note the different orientation of the SER 0 connector.) LED's U W H ACT LNK User Halt Active Link (green = LED1G) (red = LED1R) (green = LED2AC) (green = LED2LN) (green = LED2SP) Watchdog (yellow = LED1Y)
CP 321
CP 321
SPEED Speed Switches RST AB Reset Abort
Page 1 - 10
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
1.6.3
Board Layouts
Figure 1-3: CP321 Board (Front View)
optional
1 36 32
J2
1 2
J1
LED
ABORT & RESET
1
32 1
RJ45 (Serial)
S O C K E T 1
S O C K E T 2
17
SDRAM MEMORY BANK 1
DC/DC
RJ45 (Term.) LED ETHERNET
16
17 16
UART
11 1 12 2
LOGIC
CPU MPC8245
PCI TO PCI BRIDGE
ETHERNET
GOLDCAP
S2 CODE SW
CON10
2 1 20
1
99
JTAG
19
2
CON11 PCI EXPANSION CONNECTOR
100
BATTERY (Optional)
Figure 1-4: CP321 Board (Reverse View)
R28 R25 R22 R29 R27 R24
SDRAM MEMORY BANK 2
R26
R40 R45
R57 R69
R63 R68
R39
R42
R126 R182 R189 R188 R249 R260 R250 R163
R185 R198
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 11
Introduction
CP321
1.7
Technical Specifications
CP321 Specifications
Motorola MPC8245 with integrated PCI interface, 330MHz In accordance with PICMG 2.0 R 3.0 Up to 256 MB of onboard SDRAM with ECC support available as standard 16K, 32 byte line, 4-way set associative instruction cache, and 16K, 32 byte line, 4-way set associative data cache Watchdog generates: Exception Condition / Reset, or NMI (software configurable) Realtime clock backed up using GoldCap with the data retention being about 5 days (optionally, a backup battery is available)
Table 1-2: CP321 Main Specifications
Processor CPCI Interface Main Memory Cache Structure Watchdog RTC
Processor and Related External Interfaces Peripheral Memory
Soldered, Onboard Flash 8 MB for bootloader and ROMable OS (512 kB pages) EEPROM One System EEPROM, and one User EEPROM (4096 x 8) (IC Bus) (User EEPROM write protection possible) Memory Expansion Sockets 1 and 2 SRAM Up to 512 kB NV SRAM on the 32-pin DIL600 socket (2MB on request) EPROM Up to 512 kB per memory expansion socket Flash Up to 512 kB per memory expansion socket Flash Disk DiskOnChip from M-Systems (refer to current data sheet of M-Systems for types available) Ethernet 10baseT / 100BaseTX via RJ45 connector Serial Ports Standard: two RS-232 ports (TERM and SER 0), or Optionally: one RS232 port (TERM), and one RS485 optoisolated port (SER 0) PCI Expansion All ports (standard or optional) use RJ45 connectors. Internal PCI bus extension for use with PMC carrier board: CP320-IO1 Uses a single Samtec SMT Board-to-Board connector, 100-pin; order number: FLE - 15 - 01 - G - DV Standard: two sockets (32-pin, DIL600) for Flash and SRAM extension Optional: one 32-pin DIL socket and one 36-pin DIL socket (See Peripheral Memory above for devices that can be used with these sockets.) 12-pin connector for extending UART B signals to optional external interfaces (i.e. the CP320-TR1, RS485 optoisolated serial interface and the CP320-TR2, RS232) JTAG/COP interface for programming and testing purposes (Connector type: SAMTEC FTSH-110-01-L-DV-K) 3 LED's for indicating system status (two user programmable, one fixed); 3 LED's indicating the status of the Fast Ethernet link Two, non-latching, push-button type switches for resetting or halting the system Freely selectable,16 position, rotary coding switch, the position of which is read out from the coding switch register
Internal Interfaces Indicators / Switches
Memory Expansion Sockets Serial I/F Expansion Debug Interface LED's Switches, Front Panel Switch, Coding
Page 1 - 12
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Introduction
Table 1-2: CP321 Main Specifications (Continued) CP321
Mechanical Conformance PowerConsumption Temperature Range Conforms with IEEE 1101.10 3.5V, 1.1 Amp 3.3V, 0.84 Amp 0Cto+70CStandard -25Cto+75CE1 Humidity Dimensions Board Weight -40Cto+85CE2 0% to 95% non-condensing 100 mm x 160 mm, single-height Eurocard CP321:233grams CP302-IO1:90grams CP320-TR-1:15grams CP320-TR-2:15grams Operating System Sup- Initial boot loader with capability to load VxWorks operating system andLinux port CP320-TR1 Transition module providing RS485 optoisolated serial interface (Replaces standard RS232 (SER 0) interface) Transition module providing RS232 optoisolated serial interface (Replaces onboard RS232 (SER 0) interface) Cascadable PMC carrier board for one PMC module IDE hard drive module (in conjunction with CP320-IO1) Via PCI expansion connector other cascadable I/O boards possible
Specifications
Software Options
General
CP320-TR2 CP320-IO1 PMC-HDD1 Other
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 1 - 13
Introduction
CP321
1.8
1.8.1
Applied Standards
CE Compliance
The Kontron Modular Computers' CompactPCI systems comply with the requirements of the following CE-relevant standards:
* EmissionEN50081-1 * ImmissionEN50082-2 * Electrical SafetyEN60950
1.8.2
Mechanical Compliance
* Mechanical DimensionsIEEE 1101.10
1.8.3
Environmental Tests
* VibrationIEC68-2-6 Random Vibration, BroadbandIEC68-2-64 (3U boards) * Permanent ShockIEC68-2-29 * Single ShockIEC68-2-27
1.9
1.9.1
Related Publications
CompactPCI Systems/Boards
* CompactPCI Specification, V. 2.0, Rev. 3.0 * PEP Modular Computers CompactPCI System Manual, ID 19954
1.9.2
PMC Add-on Modules/Carriers
* Draft Standard for a Common Mezzanine Card Family, P1386/Draft 2.0 * Draft Standard Physical and Environment Layers for PCI Mezzanine Cards, P1386.1/Draft 2.0
Page 1 - 14
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
Chapter
2
Functional Description
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 1
Functional Description
CP321
This page was intentionally left blank.
Page 2 - 2
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
2.
Functional Description
The following chapters provide more detailed board information covering the following: board general information, memory, board interfaces, special functions, and options.
2.1
General Information
The CP321 is based on the Motorola PowerPC processor MPC8245 which integrates a large number of peripherals, such as a FPU PCI interface, PCI arbiter, Interrupt Controller, Memory and DMA Controller and multiple Timers. Important features of the CP321 are as follows: 603e Core: * * * * * * * * * CPU speed is 330 MHz. high performance, superscalar 603e core 627 Dhrystone (2.1) MIPS integer unit (IU), floating point unit (FPU) (user enabled or disabled), load/store unit (LSU), system register unit (SRU), and a branch processing unit (BPU) 16 kB instruction cache 16 kB data cache lockable L1 cache - entire cache or on a per-way basis dynamic power management IC controller with full master/slave support
Memory Interface: * programmable timing support for SDRAM (The CP321 uses SDRAM at 132 MHz) * high bandwidth bus (64-bit data bus) to SDRAM * 2 memory banks with up to 128 MB each (64, 128 or 256 Mbit memory devices) * supports 32, 64, 128 and 256 MB SDRAM * contiguous memory mapping * 8-bit ROM interface * write buffering for PCI and processor accesses * supports ECC * SDRAM data path buffer * low voltage transistor-to-transistor logic (LVTTL) * Port X: 8-bit general-purpose I/O port using ROM controller interface with address strobe 32-bit PCI Interface: * * * * * * * * * operates up to 33 MHz PCI Specification Revision 2.1 compatible universal board (3.3V or 5V signaling on CPCI) support for PCI-locked accesses to memory support for accesses to all PCI address spaces selectable big or little-endian operation (default on the CP321 is big-endian) store gathering of processor-to-PCI write and PCI-to-memory write accesses memory prefetching of PCI read accesses selectable hardware-enforced coherency
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 3
Functional Description
CP321
* PCI bus arbitration unit (five request/grant pairs) PCI agent mode capability: * * * * * * * * * * address translation unit internal configuration registers accessible from PCI two-channel integrated DMA controller supports direct mode or chaining mode (automatic linking of DMA transfers) supports scatter gathering - read or write discontinuous memory interrupt on completed segment, chain, and error local-to-local memory PCI-to-PCI memory PCI-to-local memory local-to-PCI memory
Message Unit: * IO message controller * two door-bell registers * in-bound and out-bound messaging registers Embedded Programmable Interrupt Controller (EPIC): * five hardware interrupts (IRQs) or 16 serial interrupts * four programmable timers Programmable Memory and PCI Bus Output Drivers Debug Features: * * * * watchpoint monitor address attribute and PCI attribute signals JTAG/COP - common onboard processor for in-circuit hardware debugging performance monitor
Page 2 - 4
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
2.2
2.2.1
Memory
System Memory (SDRAM)
The main memory of the CP321 consists of 32, 64, 128 or 256 MB of SDRAM soldered onto the board for mechanical stability, provides ECC support with a maximum memory speed of 132 MHz.
2.2.2
Flash
Four or eight megabyte of soldered Flash memory accommodates the bootstrap loader software and can be used to store a ROMable operating system and user data. This Flash memory is 8-bit wide and windowed with window sizes of 512 kB.
2.2.3
EEPROM's
Two, 64-kbit serial EEPROM's are provided, organized 8192 x 8. One EEPROM is for system purposes; the other is for the user. Both EEPROM's can be write protected. These EEPROM's are connected to the I2C bus provided by the MPC8245.
2.2.4
Memory Expansion Sockets (DIL600)
The CP321 provides two, 32-pin DIL sockets on which to place Flash, SRAM, non-volatile SRAM, or other DIL600 devices on the board. Access to this memory is controlled by the onboard logic. The following devices may be added to the CP321 via the 32-pin DIL600 socket: * standard EPROM devices; * standard Flash memory of up to 512 kB (e.g. the AMD29F010 and AMD29F040); * the NV SRAM from Dallas Semiconductor; These devices are available in the temperature range -40C to +85C for the industrial environment and guarantee a minimum data retention of 10 years (e.g. DS1250Y-100). In addition, as an option, socket 2 also comes with 36 pins. This can be done to provide the possibility of using 1 MB and 2 MB NVSRAM from Dallas Semiconductor (DS1265/70). These devices can then be accessed in pages of 512 kB. * DiskOnChip 2000 Flash memory. This type of Flash memory from M-Systems comes in versions with two different height profiles: low profile or high profile. The low profile modules can be used with all variants of the CP321 with their options. The high profile modules can only be used in conjunction with the CP320-IO1. If the CP320-TR1/TR2 is also installed with the CP320-IO1, then only one module can be installed and only on socket 2. Refer to the current M-Systems data sheets for types available. To prevent these devices from dislodging from their sockets due to shock or vibration it is possible to secure them using a wire strap.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 5
Functional Description
CP321
2.3
2.3.1
Board Interfaces
CPCI Interface and Pinout
Figure 2-1: CPCI Connectors J1/J2
22
The CPCI interface is based on the specification PICMG 2.0 R 3.0, 10/1/99. The CP321 is available with one of two different versions of the CPCI interface: 64-bit / 33 MHz system controller interface (standard) 32-bit / 33 MHz system controller interface with REAR-IO functionality (All board interfaces are connected to the CPCI J2 connector Tables showing the pinout of the CPCI connectors J1 and J2 appear on the following pages.
J2
1 25
J1
1 ZBDF ACE
Page 2 - 6
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
Table 2-1: CompactPCI Bus Connector J1 Pin
25 24 23 22 21 20 19 18 17 16 15 12-14 11 10 9 8 7 6 5 4 3 2 1
Row A
5V AD[1] 3.3V AD[7] 3.3V AD[12] 3.3V SERR# 3.3V DEVSEL# 3.3V Key Area AD[18] AD[21] C/BE[3]# AD[26] AD[30] REQ# BRSVP1A5 NC INTA# TCK 5V
Row B
REQ64# 5V AD[4] GND AD[9] GND AD[15] GND SDONE GND FRAME# AD[17] GND IDSEL GND AD[29] GND BRSVP1B5 GND INTB# 5V -12V
Row C
ENUM# V(I/O) AD[3] 3.3V AD[8] V(I/O) AD[14] 3.3V SBO# V(I/O) IRDY# AD[16] 3.3V AD[23] V(I/O) AD[28] 3.3V RST# V(I/O) INTC# TMS TRST#
Row D
3.3V AD[0] 5V AD[6] M66EN AD[11] GND PAR GND STOP# GND GND AD[20] GND AD[25] GND CLK GND INTP 5V TDO +12V
Row E
5V ACK64# AD[2] AD[5] C/BE[0]# AD[10] AD[13] C/BE[1]# PERR# LOCK# TRDY# C/BE[2]# AD[19] AD[22] AD[24] AD[27] AD[31] GNT# INTS INTD# TDI 5V
Row F
GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 7
Functional Description
CP321
Table 2-2: CompactPCI Bus Connector J2 (64-bit version) Pin
22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Row A
N/C CLK6 CLK5 GND BRSVP2A18 BRSVP2A17 BRSVP2A16 BRSVP2A15 AD[35] AD[38] AD[42] AD[45] AD[49] AD[52] AD[56] AD[59] AD[63] C/BE[5]# V(I/O) CLK4 CLK2 CLK1
Row B
N/C GND GND GND BRSVP2B18 GND BRSVP2B16 GND AD[34] GND AD[41] GND AD[48] GND AD[55] GND AD[62] GND BRSVP2B4 GND CLK3 GND
Row C
N/C RSV RSV RSV BRSVP2C18 PRST# DEG# FAL# AD[33] V(I/O) AD[40] V(I/O) AD[47] V(I/O) AD[54] V(I/O) AD[61] V(I/O) C/BE[7]# GNT3# SYSEN# REQ1#
Row D
N/C RSV GND RSV GND REQ6# GND REQ5# GND AD[37] GND AD[44] GND AD[51] GND AD[58] GND C/BE[4]# GND REQ4# GNT2# GNT1#
Row E
N/C RSV RSV RSV BRSVP2E18 GNT6# BRSVP2E16 GNT5# AD[32] AD[36] AD[39] AD[43] AD[46] AD[50] AD[53] AD[57] AD[60] PAR64 C/BE[6]# GNT4# REQ3# REQ2#
Row F
GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND
Page 2 - 8
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
Table 2-3: CompactPCI Bus Connector J2 (32-bit version) Pin
22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Row A
N/C CLK6 CLK5 GND LED1 Eth. Speed LED Eth. Act. LED Eth. Link LED RS485_DE UART_B RX UART_A DSR UART_A DTR RSV RSV RSV RSV RSV C/BE[5]# V(I/O) CLK4 CLK2 CLK1 N/C GND GND GND RSV N/C
Row B
Row C
N/C Eth. TDEth. TD+ RSV RSV PRST# (Push button) DEG# FAL# UART_B RTS RSV UART_A CTS RSV UART_A TX RSV RSV RSV RSV RSV C/BE[7]# GNT3# SYSEN# REQ1#
Row D
N/C Eth. RDGND RSV GND REQ6# GND REQ5# RSV UART_B DTR RSV UART_A CD RSV RSV GND RSV RSV C/BE[4]# GND REQ4# GNT2# GNT1#
Row E
N/C Eth. RD+ RSV RSV RSV GNT6# RSV GNT5# UART_B CTS UART_B CD UART_B TX RS485_RE UART_A RX RSV RSV RSV RSV RSV C/BE[6]# GNT4# REQ3# REQ2#
Row F
GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND
LED (watchdog active) N/C UART_B DSR N/C UART_A RTS GND N/C N/C N/C N/C N/C GND LED2 GND CLK3 GND
Note... The signal IPMI_PWR (on J1) is routed to 3.3V as it was defined in the preliminary version of the CompactPCI specification PICMG 2.0 R3.0.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 9
Functional Description
CP321
2.3.2
Ethernet Connector and Pinout
The Ethernet interface is based on a PCI device from Intel: the Ethernet Controller 82559ERS. The main features of the Ethernet are as follows: * * * * * * * integrated IEEE 802.3 10baseT and 100BaseTX compatible PHY glueless 32-bit PCI master interface compatible with driver software of the 82558 and 82557 full duplex support at both 10 and 100 Mbps IEEE 802.3u Auto-Negotiation support 4 kB transmit FIFO 3 kB receive FIFO
The connector used for the 100BaseTX Ethernet interface is an RJ45 connector. The signals on this connector are as follows. Figure 2-2: Ethernet Connector Table 2-4: Ethernet Connector Pinout PIN NUMBER SIGNAL
TX+ TXRX+ N/C N/C RXN/C N/C
1
1 2 3
8
4 5 6 7 8
Page 2 - 10
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
2.3.3
Serial Interfaces and Pinouts
Two serial ports: TERM (UART A) and SER 0 (UART B) are provided by means of 8-pin RJ45 connectors. The two serial interfaces are 16C550 compliant and have 128-byte transmit and receive buffers. The TERM port is used to interface with the bootstrap loader, the operating system, and the application as required. The SER 0 port is used for data transfers as called for by the operating system or the application. In the case that SER 0, the upper serial interface, is configured as RS232, the two serial ports are identical and they provide a complete set of handshaking and modem control signals, maskable interrupt generation and data transfer of up to 115.2 KBaud. A separate transition module, the CP320-TR1, is also available from Kontron which provides an optoisolated half/full duplex RS485 interface. When installed, this module replaces the standard onboard SER 0 interface along with its associated RJ45 connector. See Figure 1-2 and Appendix B for more details of this module.
Figure 2-2: RS-232 Serial Connector
Table 2-5: Serial Port Pinout PIN RS-232 SIGNALS
DSR RTS GND TXD RXD DCD CTS DTR
RS-485 SIGNALS HALFDUPLEX
N/C N/C GND +TRXD N/C N/C -TRXD N/C
1
FULLDUPLEX
-RxD N/C GND -TxD N/C +RxD +TxD N/C
8
1 2 3 4 5 6 7 8
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 11
Functional Description
CP321
2.3.4
Serial Interface Expansion Connector and Pinout
The serial interface expansion connector provides the capability to add different front end interfaces to the UART B signals. For example, the available opto-isolated RS422/485 module, CP320-TR1, may be plugged into this connector.
Figure 2-2: Serial I/F (CON3) Connector
Table 2-6: Serial I/F Expansion Connector (CON3) Pinout SIGNAL PIN
11 9 7 5 3 1
PIN
12 10 8 6 4 2
SIGNAL
VCC SDA DTR TxD DE RTSB
11 1
12 2
+3.3V SCL CTS RxD RE GND
2.3.5
PCI Expansion Connector and Pinout
The PCI Expansion Connector (CON11) provides the possibility to mount several PCI mezzanine boards above the CP321 for adding additional functionality which is not provided on the CP321 main board or on the CPCI bus. All the PCI signals of the onboard PCI bus (32-bit, 33 MHz) are routed to this connector so that a complete PCI bus is provided to the mezzanine board with almost the same number of ground and power pins (3.3V, 5V, and V(I/O)) as are on a CPCI J1 or PMC connector. In addition to the PCI signals, IC signals are also routed to this connector. Examples of PCI expansion boards are: * PMC carrier * PC-MIP carrier * IO board with second Ethernet interface, SCSI etc. Figure 2-2: PCI Expansion Connector (CON11)
1 99 100
2
A table showing the pinout of the PCI Expansion connector appears on the following pages.
Page 2 - 12
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
Table 2-7: PCI Expansion Connector Pinout SIGNAL
GND 1) RST# +3.3V 2) CLK3 GND 1) INTB# INTD# +5V 3) GNT#3 +3.3V 2) GND 1) REQ#3 +5V 3) AD31 AD29 GND 1) AD27 AD25 +3.3V 2) C/BE3# AD23 GND 1) AD21 AD19 V(I/O) 6) AD17 C/BE2# GND 1) IRDY# +3.3V 2) DEVSEL# GND 1) LOCK# PERR# SERR# +5V 3) C/BE1# AD14 GND 1) AD12 AD10 GND 1)
PIN
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83
PIN
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84
SIGNAL
SCL (I2C) +3.3V 2) CLK2 GND 1) CLK4 INTA# INTC# GNT#2 V(I/O) 6) GNT#4 REQ#2 GND 1) REQ#4 AD30 +5V 3) AD28 AD26 GND 1) AD24 SDA (I2C) +3.3V 2) AD22 AD20 GND 1) AD18 AD16 +5V 3) FRAME# GND 1) TRDY# reserved STOP# +3.3V 2) V(I/O) 6) GND 1) PAR AD15 +3.3V 2) AD13 AD11 GND 1) AD9
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 13
Functional Description
CP321
Table 2-7: PCI Expansion Connector Pinout (Continued) SIGNAL
AD8 AD7 +3.3V 2) AD5 AD3 reserved AD1 +12V 4)
PIN
85 87 89 91 93 95 97 99
PIN
86 88 90 92 94 96 98 100 C/BE0# +5V 3) AD6 AD4 GND 1) AD2 AD0 -12V 5)
SIGNAL
Key
1) Ground 4) +12V
2) +3.3V 3) +5V
5) -12V 6) V(I/O)
2.3.6
Memory Expansion Connectors
Figure 2-3: Memory sion Sockets 1 and 2
(1) 1 32 1
Two, 32-pin DIL600 sockets are provided for the addition of various types memory expansion devices with access times of less than 150ns. The devices which have been tested and approved for these connectors are as follows: * DIL type Flash memory (up to 512 kB) * DIL SRAM (up to 512 kB) e.g. Samsung KM684000BLP-7 * NVSRAM (up to 512 kB) e.g. DALLAS DS1250Y100) * EPROM (up to 512 kB) e.g. 27C040 * M-Systems DiskOnChip 2000 Optionally, Socket 2 can be expanded to 36 pins to allow the use of 1 MB or 2 MB NVSRAM from Dallas Semiconductor (DS1265/70).
Expan
optional
(36) 32
S O C K E T 1
16 17 16 (18)
S O C K E T 2
(19) 17
Page 2 - 14
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
Table 2-8: DIL 32 Pinout for Various Devices Pin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
4M-bit Flash
A18 A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND
Disk OnChip
N/C N/C N/C A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND
NV SRAM
A18 A16 A14 A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND
4M-bit Eprom
VPP A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND
4M-bit Eprom
VCC A18 A17 A14 A13 A8 A9 A11 OE_ A10 CE_ D7 D6 D5 D4 D3
NV SRAM
VCC A15 A17 WE A13 A8 A9 A11 OE_ A10 CE_ D7 D6 D5 D4 D3
Disk OnChip
VCC WE_ N/C N/C N/C A8 A9 A11 OE_ A10 CE_ D7 D6 D5 D4 D3
4M-bit Flash
VCC WE A17 A14 A13 A8 A9 A11 OE_ A10 CE_ D7 D6 D5 D4 D3
Pin
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
Table 2-9: DIL 36 Pinout for 1 MB and 2 MB NVSRAM Devices (Dallas Semiconductor 12654 and 1270Y) Pin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
NV SRAM
N/C A20 A18 A16 A14 A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND
NV SRAM
VCC A19 N/C A15 A17 WE A13 A8 A9 A11 OE_ A10 CE_ D7 D6 D5 D4 D3
Pin
36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 15
Functional Description
CP321
2.4
2.4.1
Special Board Functions
Watchdog Timer
A watchdog timer is available which (when enabled) on timeout forces either a non-maskable interrupt (NMI) to be generated or causes a system reset to occur (refer to chapter 4 for configuration details). The watchdog timing has four possible settings: 0.5, 1.0, 1.5, and 2.0 seconds. After selecting the timeout value and routing (NMI or reset) the watchdog can be enabled. Once enabled, the watchdog must be continuously retriggered or a timeout will occur. When the watchdog timer is enabled, it cannot be stopped or reprogrammed except by resetting the system. The yellow watchdog LED (W) indicates the enabling status of the watchdog. Prior to the watchdog being enabled it is off. After enabling it comes on and remains on until a system reset occurs.
2.4.2
Realtime Clock (STC M41T56)
A separate hardware realtime clock (RTC) is incorporated on the CP321 board which provides clock information via the IC bus for application use. An eight byte wide register (refer to chapter 4 for description) is available for accessing, setting, and starting the RTC. The RTC must be initialized prior to its use whereby settings are possible for seconds, minutes, hours, day, date, month, year, and calibration information. Continuous clock operation (even with system power off) is possible through the use of a rechargable Gold Cap, or alternately, lithium battery buffering is possible. Accuracy of the RTC is 35 ppm whereby temperature compensation can be adjusted in steps of +4.068 or -2.034 ppm per software using the onboard digital temperatur sensor (LM75). For calibration purposes the RTC can also generate a 512 Hz test signal which is made available at test jack J2 (figure 1-3 indicates the location of J2 on the board). Please refer to the datasheet of the ST M41T56 for more information concerning calibration. Figure 2-4: RTC J2 Pinout
1 2 FT GND FT OUT
2.4.3
Reset/Abort
Figure 2-5: CP321 Front Panel
On the CP321 front panel there are two push button switches for interacting with the system: RST for reset and AB for abort. Pressing the RST button initiates an immediate hardware reset of the system. During normal operation pressing the AB button causes a nonmaskable interrupt (NMI) to be generated. In addition it is latched into a bit in the System Logic, the purpose of which is to differentiate between the NMI initiated from the ABORT Button and the NMI initiated from the Watchdog Timer. Pressing the AB button during system startup when the U LED (green) is blinking causes the bootstrap loader to enter interactive command mode. Commands can then be entered for processing by the bootstrap loader. Refer to chapter 5 for Bootstrap Loader information.
CP 321
W
Page 2 - 16
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
2.4.4
System Status Indicators
Six system status indicators divided into two groups of three LED's each are provided on the front panel of the CP321. The first group (LED1) is application oriented whereas the second group (LED2) is dedicated to and controlled by the Ethernet interface. The table below provides an overview of the functionality associated with these indicators. Table 2-10:System Status Indicators G FP DES.
U
COLOR
GREEN
NAME
LED1G
DESCRIPTION
This LED blinks during startup indicating that the system is being initialized (bootstrap loading in progress). After system initialization has been completed it is on steady and is available for use by the application program. Refer to chapter 4 (Control Register) for setting of this LED. This LED is used to indicate the status of Watchdog Timer enabling. When on, the Watchdog Timer is enabled. This LED is available for general use and is application dependent. It is off if not used. Refer to chapter 4 (Control Register) for setting of this LED. This LED indicates that data are being transmitted or received via the Ethernet link. It blinks when there is traffic on the link. This LED indicates the integrity of the Ethernet link. When on the link is established in both directions. This LED indicates the data rate of the Ethernet link. When on the speed is 100 Mbps; off it is 10 Mbps.
W H LED1
YELLOW RED
LED1Y LED1R
ACT LNK LED2 SPEED
GREEN GREEN GREEN
LED2AC LED2LN LED2SP
2.4.5
Coding Switch
The CP321 provides a 16-position, rotary coding switch (S2), which is available to the user for general programming purposes. The setting and usage of this switch is a function of the application (e.g. To configure software or change functionality of the board depending on the position of the switch without reprogramming the configuration via interface access or software). The actual position of the switch is read out of the coding switch register as a hexadecimal value. Refer to chapter 4, Coding Switch Register, for details of the register.
2.4.6
Digital Temperature Sensor (LM75)
For purposes of temperature surveillance and a means of determining the current board temperature there is an digital temperature sensor (National Semiconductor LM75) installed on the CP321. Used as a thermal watchdog, the LM75 can generate a maskable interrupt which can be used by an application. In addition, the actual temperature can be read out of LM75 via the IC bus. This is can be used, for example, to maintain the calibration of the onboard RTC over a wide operational temperature range. Refer to chapter 4, DTS Register, for further details.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 17
Functional Description
CP321
2.4.7
DEBUG Interface and Pinout
A JTAG/COP interface is provided on the CP321 for the manufacturer's use (logic programming, JTAG test) or for software debugging. All the JTAG capable devices on the CP321 can be accessed through the onboard JTAG chain. If EMULATOR access to the MPC8245 is required it must be ensured that R260 and R188 are set and also that R163 and R250 are removed (all resistors are 0 ohm). When using this interface with emulator probes please use the signals on pins: 7, 8, 11, 12, 13, 15, 17, and 19. These are the standard signals defined by Motorola for the MPC8245 JTAG/COP port. All other signals are used for factory purposes. The following figure illustrates the layout of the JTAG chain. Figure 2-6: JTAG Chain Layout
3.3V
MPC8240
TDI TDO
R249 10k TDI
Altera Logic
TDO TDI
21154
TDO
TDI1
TDX1 TDI2
TDX2
R260
R182 R163
R198
TDI
R250 R189 R188
TDX4
TDO
TDX3
R185
Default setting: Resistor installed Resistor not installed
Note... As shipped, only the Altera onboard logic can be detected by means of the JTAG interface. If the JTAG interface requires to be reconfigured for software debugging, please contact Support at Kontron Modular Computers for assistance.
Page 2 - 18
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Functional Description
Figure 2-7: JTAG Connec- Table 2-11:JTAG Connector (CON11) Pinout tor (CON11) SIGNAL PIN PIN SIGNAL
TEST E_TI E_TCK TDI NC TCK TMS SRESET# HRESET# CHKSTP# 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 E_TO TEXEC TDO TRST# 3.3V CKSTP_IN RY1 RY2 F_WE GND
2
20
1
19
Note... The connector used on the board is the SAMTEC FTSH- 110-01-L-DVK. It is recommended to use a cable assembly (Type: FFSD-10-S-5-01N) for connecting an emulator to this connector. The factory setting of the chain is such that only the onboard logic is in the chain. If it is required to access the Processor via the JTAG chain a different setting must be used (some resistors must be reset). Refer to the table below for configuration information. Table 2-11:JTAG Chain Resistor Settings DEVICES
CPU ALTERA CPU + ALTERA ALTERA + 21154
SETTING
Installed Not Installed Installed Not Installed Installed Not Installed Installed Not Installed Installed Not Installed
RESISTORS R163 R182 R185 R188 R189 R198 R249 R250 R260
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
CPU + ALTERA + 21154
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 2 - 19
Functional Description
CP321
2.5
* * * *
Options
the CP320-IO1 mezzanine carrier board for a single PMC module, and the CP320-TR1 RS485 optoisolated transition module. the CP320-TR2 RS232 optoisolated transition module PMC-HDD1 IDE hard disk module
The following options are currently available for the CP321:
Both of these options are described in Appendices A and B respectively. In addition to the above options there is a special test/debug adapter, the CP320-Post, and a rear I/O module, the CP-RIO3-01, which can be obtained on request. Please contact your nearest sales representative for further information.
Page 2 - 20
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Installation
Chapter
3
Installation
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 3 - 1
Installation
CP321
This page was intentionally left blank.
Page 3 - 2
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Installation
3.
Installation
The CP321 has been designed for easy installation. However, the following standard precautions and installation information/procedures must be observed.
3.1
Board Installation
Caution, Electric Schock! If your board type is not specifically qualified as hotswap capable, please switch off the CompactPCI system before installing the board in a free CompactPCI slot. Failure to do so could endanger your life/health and may damage your board or system. Note... Certain CompactPCI boards require bus master and/or rear I/O capability. If you are in doubt whether such features are required for the board you intend to install, please check your specific board and/or system documentation to make sure your system is provided with an appropriate free slot to insert the board. ESD Equipment! This CompactPCI board is sensitive to static electricity discharges (ESD). Please observe the following precautions to avoid damage to your board: * Discharge your clothing before touching the assembly. Tools must be discharged before use. * Do not touch components, connector-pins, or conductive circuits. * If working at an anti-static workbench with professional discharging equipment, please do not omit to use it.
3.2
Placement of the CP321
The Kontron CompactPCI system configuration is characterized by the fact that its system slot (slot "1") is on the right end of the backplane, thus allowing for physical CPU growth (heat-sink, cooling fan, PCI expanson modules, etc.) associated with higher-performance processors. Note... Prior to inserting this controller board, please make sure it is being fitted into the system slot.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 3 - 3
Installation
CP321
3.3
Front Panel I/O Connectors
Warning! Due care should be exercised when connecting cabling in order to avoid damage to your connected device and/or the CP321 board. For pinouts of the Front Panel connectors, please see Chapter 2: Functional Description.
3.4
Assembly of the CP321 and Options
The following diagram illustrates how the CP320-IO1 mezzanine carrier board and the CP320TR1 RS485 optoisolated transition module are assembled with the CP321 main board. Assembly of the second carrier board follows on top of first carrier board. Figure 3-1: CP321 and Options Assembly
Page 3 - 4
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Installation
3.5
Software Installation
Software installation is a function of the Bootstrap Loader and is described in chapter 5 of this manual.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 3 - 5
Installation
CP321
This page was intentionally left blank.
Page 3 - 6
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
Chapter
4
Configuration
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 1
Configuration
CP321
This page was intentionally left blank.
Page 4 - 2
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.
4.1
Configuration
Jumper and Resistor Settings
Please see Figures 1-3 and 1-4 in Chapter 1 to view the positions of the jumpers and resistors on the board.
4.1.1
J1 - Bootstrap Loader / Socket Jumper
The jumper J1 is used to select the memory position from which the CP321 fetches its boot code. It establishes the address location of the onboard Flash window and the memory expansion socket 1 (DIL600, 32-pin). Refer to the Memory Configuration Register chapter for further information. Note... The MPC8245 initially fetches its boot code from address 0xFFF0 0100
Table 4-1: J1 - Bootstrap Loader / Socket Jumper Settings J1
Open Closed
DESCRIPTION
CP321 fetches boot code from onboard Flash CP321 fetches boot code from socket 1
ADDRESS ASSIGNMENT
Socket 1: Onboard Flash Window: Socket 1: Onboard Flash Window: 0xFFF8 0000 - 0xFFFF FFFF 0xFFF0 0000 - 0xFFF7 FFFF 0xFFF0 0000 - 0xFFF7 FFFF 0xFFF8 0000 - 0xFFFF FFFF
4.1.2
J2 - Realtime Clock (RTC) Calibration Output
J2 is a test point for calibration measurement of the frequency of the RTC and is as such not a jumper. Refer to the datasheet of the ST M41T56 for further information on the use of this output signal. Warning! At NO TIME is J2 to be jumpered (short circuited). This is a test point and operation with a jumper installed will cause damage to the RTC.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 3
Configuration
CP321
4.1.3
Resistor Settings for Non-standard Socket Devices
The default pinouts of sockets 1 and 2 are designed for use with standard DIL Flashes and MSystems DiskOnChip. However, in order to accommodate the various possible devices it is necessary to install resistors as jumpers to configure the board for proper operation. Table 4-2: Resistor Settings for Socket 1 USED SOCKET DEVICE
Flash / DiskOnChip (default) NVSRAM 4 Mbit EPROM
R42
Open Open Set
R40
Open Open Set
R63
Open Set Open
R57
Set Open Open
R38
Set Set Open
R68
Open Set Open
R69
Set Open Set
Table 4-3: Resistor Settings for Socket 2 USED SOCKET DEVICE
Flash / DiskOnChip (default) NVSRAM 4 Mbit EPROM
R26
Open Open Set
R28
Open Open Set
R25
Open Set Open
R22
Set Open Open
R24
Set Set Open
R27
Open Set Open
R29
Set Open Set
Note... All resistors are 0 ohm.
Page 4 - 4
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.2
Board Address Map
The following figures illustrate the address mapping of the CP321. Where the first figure describes the overall map, the second figure provides a more detailed map of the uppermost address area. The upper area address map depends on the configuration of the CP321 memory expansion sockets and the requirements of the application. Figure 4-1: CP321 Address Map
0xFFFF FFFF BANK 0 0xFFF0 0100 Reset Entry CP321 UPPER AREA BANK 0
J1 IN
J1 OUT
0xFFE0 0000
reserved
0xFF00 0000 PCI Interrupt Ack Configuration DATA 0xFEC0 0000 PCI 0x8000 0000 RESERVED 0x4000 0000 0x0000 0000 DRAM Configuration Adrress 0xFEF0 0000 0xFEE0 0000 0xFEC0 0000
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 5
Configuration
CP321
Figure 4-2: CP321 Upper Area Address Map
0xFFFF FFFF soldered FLASH (paged) 0xFFF8 0000 Memory Expansion Socket 1 0xFFF0 0000 Memory Expansion Socket 2 0xFFE8 0000 Onboard Register 0xFFE0 0010 UART B UART A 0xFFE0 0008 0xFFE0 0000 UART B UART A Onboard Register 0xFFE0 0010 0xFFE0 0008 0xFFE0 0000 Memory Expansion Socket 2 0xFFE8 0000 soldered FLASH (paged) 0xFFF0 0000 Memory Expansion Socket 1 0xFFF8 0000 0xFFFF FFFF
0xFFF0 0100 Reset Entry
Installed
Removed
Boot Strap / Loader Jumper - J1
Note... Write access to the upper area addresses is only possible using bytewide write commands.
Page 4 - 6
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.3
Board Control Registers
The Board Control registers may be accessed through byte-wide read and write operations to the address space 0xFFE0 0000 - 0xFFE7 FFFF Figure 4-3: Board Control Registers REGISTER
Board-ID Software Compatibility ID Memory Configuration Flash Bank Select SRAM Bank Select Watchdog Control Register Interrupt Enable Register Control Register Coding Switch Register Event Register Board/Logic Revision
ADDRESS
0xFFE0 0010 0xFFE0 0012 0xFFE0 0014 0xFFE0 0016 0xFFE0 0017 0xFFE0 0018 0xFFE0 0019 0xFFE0 001A 0xFFE0 001B 0xFFE0 001C 0xFFE0 001E
ACCESS READ
X X X X X X X X X X X
WRITE
X X X X X X
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 7
Configuration
CP321
4.3.1
Board ID Register
The Board ID is used to identify the CP321 in a CPCI system. The value for the CP321 is 0x83 which is factory set and cannot be changed. Table 4-4: Board ID Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT
MSB
BOARD ID 0xFFE0 0010 7 BID7 1 6 BID6 0 5 BID5 0 4 BID4 0 3 BID3 0 2 BID2 0 1
ACCESS R BID1 0 BID0 0
LSB LSB
0
4.3.2
Software Compatibility ID
The Software Compatibility ID will signal to the software when differences in hardware require different handling by the software. It starts with the value 0x00 and will be incremented with each change in hardware (software sensitive only). This register is set at the factory and is for use only by the Boot Strap Loader and BSP software, and as such, is not user relevant. Table 4-5: Software Compatibility ID REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT
MSB
SOFTWARE COMPATIBILITY ID 0xFFE0 0012 7 SC7 n/a 6 SC6 n/a 5 SC5 n/a 4 SC4 n/a 3 SC3 n/a 2 SC2 n/a 1
ACCESS R 0 SC0 n/a SC1 n/a
Page 4 - 8
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.3.3
Memory Configuration Register
The Memory Configuration register provides basic information concerning the amount of installed main memory, whether or not ECC is enabled, and from where the operating system is to obtain the boot strap loader. Table 4-6: Memory Configuration Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT BIT 0 1 2 3 4 5 6 7 BJ ECC NAME SZ0 SZ1
MSB
MEMORY CONFIGURATION 0xFFE0 0014 7 BJ n/a VAL 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 6 res. n/a 5 res. n/a 4 ECC n/a 3 res. n/a DESCRIPTION 2 res. n/a 1
ACCESS R SZ1 n/a SZ0 n/a
LSB
0
Settings: SZ1 SZ0 0 0 32 MB (64 Mbit chips, 1 bank equipped) 0 1 64 MB (64 Mbit chips, 2 banks equipped) 1 0 256 MB (256 Mbit chips, 2 banks equipped) 1 1 128 MB (128 Mbit chips, 2 banks equipped) reserved reserved ECC disabled ECC enabled reserved reserved Boot Jumper J1 closed (CP321 fetches boot code from socket 1) Boot Jumper J1 open (CP321 fetches boot code from onboard flash)
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 9
Configuration
CP321
4.3.4
Flash Bank Select Register
The Flash bank select register is used to select the appropriate soldered Flash bank. As 8-bit wide Flash memory may only be accessed through a 512 kB window this is the only way to address a larger size Flash memory. Using bits 0 to 3 (FBn), 16 Flash banks can be selected (16x512 kB = 8 MB). The default value on startup of the CP321 is 0x00. Table 4-7: Flash Bank Select Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT
MSB
FLASH BANK SELECT 0xFFE0 0016 7 res. n/a 6 res. n/a 5 res. n/a 4 res. n/a 3 FB3 0 2 FB2 0 1
ACCESS R FB1 0 W FB0 0
LSB LSB
0
4.3.5
SRAM Bank Select Register
This register is for usage in conjunction with the memory expansion socket 2 and NVSRAM Types DS1265Y or DS1270Y. Due to the fact that there is only a page size of 512 kB available for the memory expansion socket 2, the additional address lines are provided by writing to the bits 0 and 1 (SBn) of the register: * a 1 in bit 0 (SB0) provides address A19 for the NVSRAM, * a 1 in bit 1 (SB1) provides address A20 for the NVSRAM. Table 4-8: SRAM Bank Select Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT
MSB
SRAM BANK SELECT 0xFFE0 0017 7 res. n/a 6 res. n/a 5 res. n/a 4 res. n/a 3 res. n/a 2 res. n/a 1
ACCESS R SB1 0 W 0 SB0 0
Page 4 - 10
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.3.6
Watchdog Control Register
The Watchdog Control register is the interface between applications and the operating system for controlling the functioning of the Watchdog. Together with the Event Register, bit 0 (WD) and bit 2 (PB2), the possibility is provided for either hardware (Abort switch) or software (Watchdog timer) intervention in the execution of the application. Table 4-9: Watchdog Control Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT BIT 0 1 2 3 NAME WDT0 WDT1
MSB
WATCHDOG CONTROL 0xFFE0 0018 7 0 VAL 0 1 0 1 0 1 0 1 0 6 WD_R 0 5 res. n/a 4
WD_TRG
ACCESS R 3 res. n/a 2 res. n/a 1 WDT1 n/a W WDT0 n/a
LSB
0
WD_EN
0
DESCRIPTION
Settings: WDT1 WDT0 0 0 0.5 seconds Watchdog timeout time 0 1 1.0 seconds Watchdog timeout time 1 0 1.5 seconds Watchdog timeout time 1 1 2.0 seconds Watchdog timeout time reserved reserved When WD-EN (bit 7) set to 1, indicates that Watchdog timer has not been retriggered. Causes the Watchdog to be retriggered (Resets Watchdog timer to value indicated by bits 0 and 1, and WD_TRG (bit 4) to 0) Normal watchdog functionality Cascade mode: when watchdog timout occurs, an NMI will be generated, the watchdog timer resets, a further timeout will result in a system reset (when WD_R is first set to 1) Causes hardware reset of system upon Watchdog timeout Causes generation of a non-maskable interrupt upon Watchdog timeout Watchdog timer disabled Watchdog timer enabled
4
WD_TRG
1 0 5
WD_CCD
1 0 1 0
6
WD_R
7
WD_EN
1
Note... Once the Watchdog timer is enabled it cannot be disable except by resetting the system.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 11
Configuration
CP321
4.3.7
Interrupt Enable Register
Table 4-10:Interrupt Enable Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT BIT
0 1 2 3 4 5 6 7 DEG_EN FAL_EN
MSB
INTERRUPT ENABLE 0xFFE0019 R
ACCESS
W res. n/a
LSB
7
res. n/a
6
FAL_EN 0
5
DEG_EN 0
4
res. n/a
3
res. n/a
2
res. n/a
1
res. n/a
0
NAME
VAL
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Reserved Reserved Reserved Reserved Reserved
DESCRIPTION
Assertion of the power supply derate signal DEG cannot result in an interrupt Assertion of the power supply derate signal DEG results in an interrupt Assertion of the power supply failure signal FAL cannot result in an interrupt Assertion of the power supply failure signal FAL results in an interrupt Reserved
Page 4 - 12
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.3.8
Control Register
The Control register provides access to the front panel general purpose LED's (LED1R and LED1G), allows for the generation of a software reset of the system, and is used to control the configuration of the SER 0 (UART B) either for RS232 or RS485 operation. Table 4-11:Control Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT BIT 0 1 2 3 4 5 6 S_RST NAME LED1G LED1R
MSB
CONTROL 0xFFE0 001A 7 n/a VAL 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LED1G (green) off LED1G (green) on LED1R (red) off LED1R (red) on reserved reserved no operation Causes a software reset (S_RST) to be initiated reserved reserved
ACCESS R 3 res. n/a DESCRIPTION 2 res. n/a 1 LED1R 0 W LED1G 0
LSB
6 res. n/a
5 res. n/a
4 S_RST n/a
0
RS_CTL
Indicates that the serial interface, SER 0 (UART B), is to be configured for RS232 operation Indicates that the serial interface, SER 0 (UART B), is to be configured for RS485 operation
Warning! 7 RS_CTL 1 When setting bit 7 care must be taken to ensure that the installed interface corresponds to the bit setting. A mismatch may cause damage to the CP321 or the application.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 13
Configuration
CP321
4.3.9
Coding Switch Register
The Coding Switch Register is used to indicate the actual position of the onboard general purpose coding switch. The position is shown in binary form. Table 4-12:Coding Switch Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT
MSB
CODING SWITCH 0xFFE0 001B 7 res. n/a 6 res. n/a 5 res. n/a 4 res. n/a 3 SW3 n/a 2 SW2 n/a 1
ACCESS R SW1 n/a SW0 n/a
LSB LSB
0
4.3.10
Board Logic / Revision Register
The Board Revision Register may be used to identify the hardware (BRn) and logic status of the board by the software (LRn). It is set at the factory and starts with the value 0x00 for the initial board prototypes and will be incremented with each redesign / logic release. Table 4-13:Board Logic / Revision Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT
MSB
BOARD LOGIC/REVISION 0xFFE0 001E 7 LR3 n/a 6 LR2 n/a 5 LR1 n/a 4 LR0 n/a 3 BR3 n/a 2 BR2 n/a 1
ACCESS R 0 BR0 n/a BR1 n/a
Page 4 - 14
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.3.11
Event Register
The Event register is used to indicate the origin of the generation of the non-maskable interrupts caused either by a Watchdog timeout or the pressing of the Abort switch. Table 4-14:Event Register REGISTER NAME ADDRESS BIT POSITION CONTENT DEFAULT BIT 0 1 2 3 4 5 6 7 PB2 NAME WD
MSB
EVENT 0xFFE0 001C 7 res. n/a VAL 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 6 res. n/a 5 res. n/a 4 res. n/a 3 res. n/a DESCRIPTION
Indicates that no Watchdog timeout has occurred Indicates that a Watchdog timeout has occurred reserved Indicates that the Abort switch has not been pressed Indicates that the Abort switch has been pressed reserved reserved reserved reserved reserved
ACCESS R 2 PB2 0 1 res. n/a W WD 0
LSB
0
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 15
Configuration
CP321
4.4
4.4.1
UART Registers Address Mapping
UART A
The following table indicate the address mapping of the UART A. For a more detailed description please refer to the EXAR XR16C2850 DUART manual. Table 4-15:UART A General Register Set READ MODE
Receive Holding Register n/a Interrupt Status Register n/a n/a Line Status Register Modem Status Register Scratchpad Register
WRITE MODE
Transmit Holding Register Interrupt Enable Register FIFO Control Register Line Control Register Modem Control Register n/a n/a Scratchpad Register
ADDRESS
0xFFE0 0000 0xFFE0 0001 0xFFE0 0002 0xFFE0 0007 0xFFE0 0004 0xFFE0 0005 0xFFE0 0006 0xFFE0 0007
Table 4-16:UART A Baud Rate Register Set READ MODE
LSB of divisor latch MSB of divisor latch
WRITE MODE
LSB of divisor latch MSB of divisor latch
ADDRESS
0xFFE0 0000 0xFFE0 0001
Table 4-17:UART A Enhanced Register Set READ MODE
Trigger Level Register Feature Control Register Enhanced Feature Register Enhanced Mode Select Register Xon-1 Xon-2 Xoff-1 Xoff-2
WRITE MODE
Trigger Level Register Feature Control Register Enhanced Feature Register Enhanced Mode Select Register Xon-1 Xon-2 Xoff-1 Xoff-2
ADDRESS
0xFFE0 0000 0xFFE0 0001 0xFFE0 0002 0xFFE0 0007 0xFFE0 0004 0xFFE0 0005 0xFFE0 0006 0xFFE0 0007
Page 4 - 16
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.4.2
UART B
The following table indicate the address mapping of the UART B. For a more detailed description please refer to the EXAR XR16C2850 DUART manual. Table 4-18:UART B General Register Set READ MODE
Receive Holding Register n/a Interrupt Status Register n/a n/a Line Status Register Modem Status Register Scratchpad Register
WRITE MODE
Transmit Holding Register Interrupt Enable Register FIFO Control Register Line Control Register Modem Control Register n/a n/a Scratchpad Register
ADDRESS
0xFFE0 0008 0xFFE0 0009 0xFFE0 000A 0xFFE0 000B 0xFFE0 000C 0xFFE0 000D 0xFFE0 000E 0xFFE0 000F
Table 4-19:UART B Baud Rate Register Set READ MODE
LSB of divisor latch MSB of divisor latch
WRITE MODE
LSB of divisor latch MSB of divisor latch
ADDRESS
0xFFE0 0008 0xFFE0 0009
Table 4-20:UART B Enhanced Register Set READ MODE
Trigger Level Register Feature Control Register Enhanced Feature Register Enhanced Mode Select Register Xon-1 Xon-2 Xoff-1 Xoff-2
WRITE MODE
Trigger Level Register Feature Control Register Enhanced Feature Register Enhanced Mode Select Register Xon-1 Xon-2 Xoff-1 Xoff-2
ADDRESS
0xFFE0 0008 0xFFE0 0009 0xFFE0 000A 0xFFE0 000B 0xFFE0 000C 0xFFE0 000D 0xFFE0 000E 0xFFE0 000F
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 17
Configuration
CP321
4.4.3
IRQ Routing
The IRQ routing of the CP321 is serial as opposed to being parallel. Hence the IRQ names are prefixed with S_ to indicate that they are serial. Table 4-21:IRQ Routing IRQ NAME
S_IRQ0 S_IRQ1 S_IRQ2 S_IRQ3 S_IRQ4 S_IRQ5 S_IRQ6 S_IRQ7 S_IRQ8 S_IRQ9 S_IRQ10 S_IRQ11 S_IRQ12 S_IRQ13 S_IRQ14 S_IRQ15
SOURCE
Reserved UART-A UART-B INTA# (PCI) INTB# (PCI) INTC# (PCI) INTD# (PCI) TEMP_INT (Temperature Interrupt) reserved ENUM reserved reserved reserved DEG FAL reserved
Page 4 - 18
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
4.4.4
Real-time Clock
Access to the real-time clock (RTC) is effected via the I2C bus. The RTC uses address 0xD0. For more detailed information please refer to the manuals for the ST - Microelectronics M41T56 and the Motorola MPC 8245 (I2C - Bus). Table 4-22:Register Map RTC M41T56 REG. BYTE
0 1 2 3 4 5 6 7 OUT
ADDRESS BITS D7
ST X CEB X X X CB X X X
D6
D5
10 Seconds 10 Minutes
D4
D3
D2
D1
D0
FUNCTION RANGE IN BCD FORMAT
Seconds: 00 - 59 Minutes: 00 - 59 Century: 0 - 1 Hours: 00 - 23 Day: 00 - 07 Date: 01 - 31 Month: 01 - 12 Year: 00 - 99 Control
Seconds Minutes Hours X Date Month Years Calibraton Day
10 Hours X X
10 Date X 10M.
10 Years FT S
Legend for Table 4-22: CEB = Century enable bit CB = Century bit FT = Frequency test bit OUT = Output level ST = Stop bit S = Sign bit
Note... When the RTC has once been stopped due to low voltage, it is necessary to re-initialize the "Seconds" "Minutes" and "Hours" registers before it will run again.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 19
Configuration
CP321
4.5
EEPROM's
Access to the EEPROM's is effected via the I2C bus of the MPC8245. The EEPROM's use the I2C address 0xA0 (System) and the address 0xA2 (User). Write protection is achieved by installing 0 ohm resistors R126 (System) and R45 (User). Default is unprotected. For more detailed information please refer to the manuals for the MICROCHIP 24LC16B and the MOTOROLA MPC8245 (I2C bus).
4.6
Digital Temperature Sensor, LM75
Access to the onboard digital temperature sensor (DTS) is effected via the I2C bus of the MPC8245. The DTS uses the I2C address 0x90. For more detailed information please refer to the manuals for the National Semiconductor LM75 and the MOTOROLA MPC8245 (I2C bus).
Page 4 - 20
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
Configuration
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 4 - 21
Configuration
CP321
This page was intentionally left blank.
Page 4 - 22
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
NetBootLoader
Chapter
1 5
PRELIMINARY
NetBootLoader
26172.01.VC.030730/163444
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 5 - 1
NetBootLoader
CP321
PRELIMINARY
This page has been intentionally left blank.
Page 5 - 2
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
26172.01.VC.030730/163444
CP321
NetBootLoader
5.
NetBootLoader
This EBrainTM module is delivered with the NetBootLoader software already programmed into the onboard soldered Flash memory. The NetBootLoader itself is a software utility which initializes the module for operation before turning control over to either an application or to an operator. This software also provides the capability to monitor and control the operation of the NetBootLoader itself, display system status information, to program executable code and data to the Flash memory, and to load and start application software. To attain full operational capability, the NetBootLoader FLASH must be programmed by the user with application software. Once the application has been programmed to Flash memory, the NetBootLoader will support the complete boot operation. The following chapters describe the functioning of the NetBootLoader and how to program the Flash memory. Note... The following description assumes a standard CPU board with appropriate hardware. In the event such hardware is not available, disregard the text that applies to the missing hardware and proceed as appropriate.
5.1
General Operation
Upon power on or a system reset, the NetBootLoader is started. The CPU board is configured for operation and control is either passed to an application or an operator. In the event a valid application has been programmed into the Flash memory and no operator intervention takes place, the application is copied from FLASH into SDRAM and control is passed to the application. If the NetBootLoader does not find a valid application or operator intervention has occurred, control is passed to the operator. The operator now has control to determine the system status, make configuration changes, read or program the Flash memory, or to restart or shut down the system. The operator command interfacing with the NetBootLoader is accomplished either via the TERM serial port or the Ethernet port. During the boot operation a command interpreter is started which allows the operator to input commands to the NetBootLoader. Prior to interfacing via the Ethernet port the network must be configured. This is done via the TERM port.
5.2
* * * *
NetBootLoader Interfaces
Via the MC1 (Abort) signal Via the TERM serial interface Via the SER0 serial interface Via the Ethernet interface
There are four possibilities to interface with the NetBootLoader:
26172.01.VC.030730/163444
Gaining access to the NetBootLoader is a function of the contents of the Flash memory and the "BootWaitTime" setting. If there is no valid application programmed into the Flash memory, the boot operation automatically terminates after the module has been initialized and control is passed to the command interpreter. If there is a valid application in the Flash memory the boot operation is delayed according to the setting of the boot wait time, and the MC6 (LED1) output signal is alternately asserted indicating that the boot operation is in a wait state. During this time the operator may intervene in the boot operation either by asserting the MC1 (Abort) signal, entering the "abort" command via the TERM interface, or by performing a successful telnet login via the Ethernet interface. If the operator does not intervene, the boot operation is continued after the boot wait time has been exceeded.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 5 - 3
PRELIMINARY
NetBootLoader
CP321
5.2.1
MC1 (Abort) Signal
The MC1 (Abort) signal is routed to the CP321 carrier board via the System Interface (CON1 connector) and, if made available on the carrier, provides the operator with the ability to directly terminate the boot operation during the boot wait time which is indicated by the alternately asserted MC6 (LED1) signal. This is the sole purpose of the MC1 (Abort) signal during the NetBootLoader operation.
5.2.2
TERM Serial Interface
The TERM serial port, if realized on the carrier board, is used to provide direct operator interfacing to the NetBootLoader. As soon as the CPU board has been initialized this port is activated and the operator may input commands. During the boot wait time the operator may terminate the boot operation and take control of the NetBootLoader. Once the boot wait time is exceeded the command interpreter is deactivated and the operator no longer has access to the NetBootLoader.
PRELIMINARY
The TERM serial interface may either be directly connected to a terminal device or may interface with a terminal emulator.
5.2.3
SER0 Serial Interface
The SER0 serial port is used to provide the NetBootLoader with the ability to access Motorola S-Records for programming an application to FLASH. No command interpreter is available for this interface.
5.2.4
Ethernet Interface
The Ethernet interface provides the capability of remotely interfacing with the NetBootLoader. Prior to using this interface it is necessary to configure the NetBootLoader network settings. This is accomplished via the TERM interface. Once the network settings have been made, the remote operator has the same capabilities as with the TERM interface. During the boot wait time the operator gains control of the NetBootLoader by logging into it via the Ethernet interface. This causes the boot operation to be terminated and gives control to the remote operator. The Ethernet interface uses the telnet protocol for operator interfacing with the NetBootLoader. In addition to the operator interface via Ethernet, the NetBootLoader also uses the Ethernet interface for ftp server access.
5.3
NetBootLoader Functions
In addition to initializing the CPU board for operation and the loading and starting of applications, the NetBootLoader provides the following operator monitor and control functions: * * * * * NetBootLoader control system status monitoring ftp server access FLASH reading and programming operations Motorola S-Record acquisition
26172.01.VC.030730/163444
These functions are described in detail in the following chapters. NOTE ... The command title (CMD TITLE) is expressed in capital letters and is not the same as the syntax of the command. The command syntax is always written using small letters
Page 5 - 4
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
NetBootLoader
5.3.1
NetBootLoader Control
The NetBootLoader provides various functions for controlling the operation of the NetBootLoader itself as well as the setting of operational parameters. The following table provides an overview of available NetBootLoader control functions. Table 5-1: NetBootLoader Control Commands CMD TITLE
ABORT BW HELP or ? LOGOUT NET PASSWD PF RS
ALIAS
Boot Wait Password Port Format Reset
FUNCTION
Terminate boot wait Set or display BootWaitTime Display online HELP pages
REMARKS
Set network parameters Set telnet password Set serial port parameters Resets system
Must be set before attempting telnet login Must be set before attempting telnet login Used for both TERM and SER0 ports
5.3.2
System Status Monitoring
The NetBootLoader provides various functions for monitoring the overall status of the system during the operation of the NetBootLoader. The following table provides an overview of available system status monitoring functions. Table 5-2: System Status Monitoring Commands CMD TITLE
CHECK INFO MD PCI PING 26172.01.VC.030730/163444 VER
ALIAS
Memory Display Version
FUNCTION
Application validation Display system information Display memory contents Display PCI device information Verify network status Display version number of NetBootLoader
REMARKS
Verifies validity of user image programmed to FLASH
Applies to all visible memory
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 5 - 5
PRELIMINARY
Terminate telnet session
NetBootLoader
CP321
5.3.3
ftp Server Access
The NetBootLoader provides various functions for interfacing with an ftp server. The following table provides an overview of available ftp server functions. Table 5-3: ftp Server Commands CMD TITLE
BYE CD GET
ALIAS
Change Directory List Directory Print Working Directory
FUNCTION
Terminate session with ftp server Change ftp server directory Download a file from ftp server Login to ftp server List ftp server directory Upload a file to ftp server Display current ftp server directory
REMARKS
Only for executable applications. Data buffer is target.
PRELIMINARY
LOGIN LS PUT PWD
Lists contents of directory. Data buffer is source. Lists name of directory
5.3.4
FLASH Operation
The NetBootLoader provides various functions for performing operations with Flash memory. The following table provides an overview of available FLASH operation functions. Table 5-4: FLASH Operation Commands CMD TITLE
CLONE LF SF
ALIAS
Load FLASH Store FLASH
FUNCTION
Program NetBootLoader to FLASH Program application to FLASH Reads FLASH to data buffer
REMARKS
Uses data buffer or socket as source Uses data buffer as source Uses data buffer as target
5.3.5
Motorola S-Records
The NetBootLoader provides one function for acquiring Motorola S-Records. The following table provides an overview of this function. Table 5-5: Motorola S-Records Commands
26172.01.VC.030730/163444
CMD TITLE
SL
ALIAS
SLoad
FUNCTION
Download Motorola S-Records
REMARKS
Uses data buffer as target
Page 5 - 6
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
NetBootLoader
5.4
5.4.1
Operating the NetBootLoader
Initial Setup
The CPU board is delivered with the NetBootLoader already installed in the onboard soldered FLASH and is ready for operation. However, in order for the CPU board to be used in a system, application software must be made available for use. This is accomplished by programming the application also to the onboard soldered Flash memory where the NetBootLoader is located. Upon initial power up the NetBootLoader is started automatically. As soon as the NetBootLoader has completed initialization of the CPU board, it checks to see if there is a valid application programmed in FLASH and at the same time initiates a command interpreter which the operator can access either via the TERM or telnet interfaces. If there is no valid application in memory, the NetBootLoader terminates the boot operation, and waits for operator intervention. As this is the case when the CPU board is first powered up, the operator now has the opportunity to program an application. Prior to programming an application it may be necessary to configure the NetBootLoader or perform other functions depending on the user's application development environment or application requirements. Once this has be accomplished and the application has been programmed, the CPU board is ready for operation. The following chapters provide information on how to set up and operate the NetBootLoader itself, initiation of the telnet interface, and how to program an application to FLASH.
5.4.2
Accessing the NetBootLoader
Initial access to the NetBootLoader can only be achieved via the TERM interface. Prior to using the telnet interface, the Ethernet parameters must be set and this can only be accomplished initially via the TERM interface. Once valid Ethernet parameters and the telnet login password have be set, the telnet interface is available for operation. Use of the TERM interface requires either a terminal or a terminal emulator. Use of the telnet interface requires a remote telnet login to the NetBootLoader. Availability of the command interpreter depends on the system status. If there is no valid application programmed, the command interpreter is available as long as the operator requires it. If a valid application is programmed, the command interpreter is only available for the duration of the boot wait time. If the operator requires the command interpreter for a longer time he must terminate the boot operation before the boot wait time is exceeded. Upon initiation of the command interpreter, a prompt is sent to the TERM interface and commands may be entered. To gain access to the NetBootLoader from a remote location via Ethernet a telnet login must be performed. If the boot wait time has not been exceeded, a telnet login automatically terminates the boot operation and a command prompt is sent to the telnet remote interface. Once the operator has control of the NetBootLoader, he may perform any required action. To continue with the operation of the CPU board, the system must either be cold started or the operator must issue a "reset" command. In either event, the NetBootLoader is restarted and the boot operation begins anew.
26172.01.VC.030730/163444
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 5 - 7
PRELIMINARY
NetBootLoader
CP321
5.4.3
NetBootLoader Configuration
There are several NetBootLoader commands which provide the operator with the capability to configure specific parameters which are used by the NetBootLoader for interfacing operations. These commands are: * * * * BW (BootWait) NET PASSWD PF (Port Format)
Default settings are available for all the above commands except for "net" which is dependent on the application environment.
5.4.3.1
BW
PRELIMINARY
This command is used to display or set the actual boot wait time used by the NetBootLoader to delay the boot operation before proceeding with the loading and starting of an application. If this time is set too short it may only be possible to gain access to the NetBootLoader via the MC1 (Abort) signal. The BootWaitTime value is stored in the boot section of the serial EEPROM. This section is validated with a CRC code to avoid the setting of random parameters. Note ... If the CRC of the boot section is not valid, changing the BootWaitTime will have no effect because the "bw" command does not validate an invalid CRC. In this case, a default timing of 5 seconds is always used. To validate an invalid CRC, an operating system utility must be used, or, alternatively, the "-f" option of the "bw" command must be issued. Warning !!! Using the "bw -f" command to validate invalid entries may adversely impact the operation of the operating system.
5.4.3.2
NET
This command is used to set or display the parameters for the configuration of the Ethernet interface of the CPU board. The Ethernet interface is only available after these settings have been made. Once these settings have been made, the system must be cold started or reset for them to take effect.
5.4.3.3
PASSWD
This command is used to set the password used by the NetBootLoader for the operation of the telnet interface. No password is required for access from the TERM interface.
26172.01.VC.030730/163444 Page 5 - 8 (c) 2003 Kontron Modular Computers GmbH ID 24977, Rev. 02
CP321
NetBootLoader
5.4.3.4
PF
This command is used to set the port parameters for the TERM and SER0 serial interfaces only for the current operator session. The next system restart will cause these settings to revert to the default settings of: 9600 Baud, 8 bits per character, 1 stop bit, and no parity. This is done to preclude a system lockout when restarting due to incompatible settings.
5.4.4
telnet Login
A telnet login to the NetBootLoader is only possible during the boot wait time and only after the Ethernet network parameters have been set. To effect a telnet login the operator performs the standard telnet login procedure during the boot wait time. The NetBootLoader responds by suspending the boot wait and requests a login password. The operator then enters a password. If the password is valid, the boot wait is terminated and the operator can now access the NetBootLoader. If the password is invalid, the telnet login procedure is terminated and the boot operation continues. In the case of an invalid password, the login procedure may be repeated as often as required within the boot wait time. Once the boot wait time is exceeded, a telnet login is no longer possible.
5.4.5
FLASH Operations
To achieve an operable system for an application, the application software must be programmed to FLASH. The NetBootLoader supports the programming of the application to FLASH. In addition to this, it also supports the updating of the NetBootLoader itself as well as data transfer from the FLASH to the data buffer and from the data buffer to an ftp server. The following chapters provide information on performing the various types of FLASH operations.
5.4.5.1
FLASH Offsets
All FLASH is treated as one uniform FLASH, regardless of the physical addresses of the devices involved. All offsets are based from the beginning of the FLASH area. This means that 0x0 is the beginning of the first FLASH bank. The NetBootLoader itself is located at the beginning of the FLASH area and for this reason this area cannot be used for application image programming. To display an overview of the current FLASH organization use the "info" command. If the application image is an operating system (which is the default case), it must be programmed without an offset. When such an image is programmed to FLASH, the image length and CRC information is also programmed along with the image to FLASH. This information is used by the NetBootLoader to determine the validity of the image during the boot operation. During system startup, a valid image is copied to SDRAM address 0x0 and started at offset 0x100 after the boot wait time is exceeded. If an offset is specified, the image will be programmed exactly at this offset without adding length or CRC information. This option is intended for the storing of configuration information which is required to be located in FLASH.
26172.01.VC.030730/163444
5.4.5.2
Programming an Application
The application image itself must be compiled and linked to run from the SDRAM base address 0x0 of the CPU. The image must contain executable PPC code at offset 0x100 which is the usual case with ROM/Flash images.
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 5 - 9
PRELIMINARY
NetBootLoader
CP321
Gaining access to the image for programming to FLASH depends on where it is located. The NetBootLoader can access three different sources for images: * ftp server * Motorola S-Records * memory within the visible address range of the CPU board The NetBootLoader uses a single data buffer for downloading an image from an ftp server or an image as Motorola S-Records. These images must first be downloaded to the data buffer prior to being programmed to FLASH. An image located within the visible address range of the CPU board is directly accessible for programming. To access an image located on an ftp server, the "get" command is used. To perform Motorola S-Record acquisition, the "sl" (SLoad) command is used. Once the image is in the data buffer, the FLASH is programmed using the "lf" (Load Flash) command. For an image within visible memory, the "lf" (LoadFlash) command is used to program directly to FLASH.
PRELIMINARY
5.4.5.3
ftp Server Access
To gain access to an application image file stored on an ftp server the Ethernet interface is used. Images are downloaded to the data buffer using the ftp protocol. To use this interface the Ethernet parameters must first be set and then the system must be restarted. During boot wait the operator must gain control of the NetBootLoader and perform an ftp server login. After a successful login, the operator then locates the image file required and downloads it to the data buffer. As with any type of server session, the operator should logout when the session is finished. Note ... The commands "get" and "ls" use the same data buffer. Therefore if an "ls" command is issued after a "get" command the data buffer will be overwritten. If an "lf" command follows the "ls" the NetBootLoader refuses to program the overwritten data buffer to the FLASH.
5.4.5.4
Motorola S-Records
The NetBootLoader will also accept Motorola S-Records as an application image. The "sl"' command accepts S1, S2 and S3 records. Operation is terminated by the appropriate S9, S8 or S7 record. Other types of records are ignored. The checksum of every record except end records is checked. Bad records are rejected by the NetBootLoader. The address range of every record is also checked. Records which fall outside of the internal buffer are rejected. The records must be 0-based. This means that it's address must correspond to the address where they will be loaded in the data buffer relative to its start. If necessary, the base address can be modified with the -o option of the "sl" command. Note ... If the data buffer is programmed to FLASH without the -o option (program a startable image) the downloaded image is copied to RAM during startup and is executed there. For this reason application images which require to be programmed must start at the address 0x0.
26172.01.VC.030730/163444
Page 5 - 10
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
CP321
NetBootLoader
The image must start at the absolute address 0x0 and must contain executable PPC code at the absolute address 0x100. If S1 or S2 record input is preferred, please note that these records only include 16 and 24-bit wide addresses. If no switch to another record type is included it must be ensured that the code is not larger than the address range covered. Note ... Neither the "sl" nor "If" command can be used to program Motorola S-Records to RAM areas.
For accessing the Motorola S-Records, both the TERM and SER0 interfaces can be used. The MC6 (LED1) signal is asserted alternately at a low rate while downloading indicating that the transfer is in progress. The transfer itself may take several minutes to complete.
The TERM and SER0 serial interface parameters can be modified with the "pf" command.
5.4.6
Updating the NetBootLoader
In addition to programming an application to FLASH, the NetBootLoader itself can be updated. The new version of the image is made available via an ftp server.
5.4.6.1
Updating With an Image Loaded Via an ftp Server
The image is downloaded in the same way as an application image (refer to chapter 5.4.5.3). The new version of NetBootLoader image is then programmed using the "clone -n" command.
5.4.7
Uploading a FLASH Area
The NetBootLoader also has the possibility to upload certain areas of the FLASH to a host using the Ethernet interface. To use this interface the Ethernet parameters must first be set and then the system must be restarted. During boot wait the operator must gain control of the NetBootLoader and perform an ftp server login. After a successful login, the operator then stores the FLASH area to be uploaded to the local data buffer using the "sf" command. Using the "put" command transfers the contents of the data buffer to the ftp server. As with any type of server session, the operator should logout when the session is finished.
5.5
Plug and Play
On the CPU board the NetBootLoader includes "Plug and Play" functionality. This ensures that the board is completely initialized and that all resources necessary for PCI devices (addresses, interrupts etc.) are assigned automatically. This important feature has the advantage that conflicts do not arise when PCI devices are added or removed. Furthermore, the operating system itself does not include the board initialization code.
26172.01.VC.030730/163444
ID 24977, Rev. 02
(c) 2003 Kontron Modular Computers GmbH
Page 5 - 11
PRELIMINARY
Ensure that the XON/XOFF protocol is used on the host side. This is a fixed setting and cannot be changed. Additionally, ensure that the host does not stop transmission after a number of lines (e.g. OS-9: use the `nopause' attribute).
NetBootLoader
CP321
5.6
Porting an Operating System to the CPU Board
The image for the absolute address 0x0 should be linked with an entry point at the absolute address 0x100. One should not attempt to reassign the PCI BAR registers. The assigned values should be read back and these should always be used in the drivers. The "interrupt line" field in the PCI configuration header is initialized with the IRQ line number to which the INTA of the device is routed. It is not necessary to rewrite the "EUMBBAR" field in the KAHLUA (MPC 8240) configuration space as this has already been done by the NetBootLoader. The existing value should be used. Downloaded images are never executed from the FLASH due to the fact that on the CPU board it is paged. The programmed image is always downloaded to SDRAM, the absolute address 0x0 being downloaded first. There is no configuration option available to amend this process. If it is necessary to relocate the image to another address after download, simply add a small assembly routine at the beginning of the code which will move the image to the correct address.
PRELIMINARY
Page 5 - 12
(c) 2003 Kontron Modular Computers GmbH
ID 24977, Rev. 02
26172.01.VC.030730/163444
CP321
NetBootLoader
5.7
Commands
The following commands are available with the NetBootLoader. Where an ellipsis (...) appears in the command syntax it means that the command is continued from the previous line. Observe any spaces that may be between the ellipsis and the remainder of the command.
ABORT
FUNCTION: SYNTAX: DESCRIPTION: Terminate the NetBootLoader boot operation
abort
This command is used by the operator to to terminate the boot operation during the boot wait time to allow the operator to perform other NetBootLoader operations. To be asserted it must be issued during the boot wait time which is indicated by the alternating assertion of the MC6 (LED1) signal.
BW
FUNCTION: Set or display the parameters of the boot wait function of the NetBootLoader
SYNTAX:
bw [


▲Up To Search▲   

 
Price & Availability of CP321

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X